Fedora This forum is for the discussion of the Fedora Project.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
03-31-2005, 03:06 PM
#1
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Rep:
samba windows and the command line
hi all
dont know if anyone can help with this one
I am running a small network with 3 machines on it (one Fedora 3 box, 1 XPpro box anda cobalt 2 qube)
I am logging in remotely
I can access the shared drived on the XP machine via the gui fine without problem but i having problems accessing them from the command line?
I cannot seem to find the right command to access the drives with a command line can anyone help?
when i check the share i get the following
/usr/bin/smbclient -L \\whitestar
Password:
Domain=[WHITESTAR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
Sci Fi (E) Disk
Media (I) Disk
K Disk
IPC$ IPC Remote IPC
D$ Disk Default share
X$ Disk Default share
SharedDocs Disk
MP3 (D) Disk
I$ Disk Default share
K$ Disk Default share
C Disk
Sci Fi (H) Disk
Music (J) Disk
DC (G) Disk
Media (F) Disk
music (L) Disk
G$ Disk Default share
A Disk
ADMIN$ Disk Remote Admin
H$ Disk Default share
C$ Disk Default share
X Disk
J$ Disk Default share
L$ Disk Default share
Domain=[WHITESTAR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
I am trying to get the into the DC (G) drive with the following command
/usr/bin/smbclient \\\\whitestar\\DC/(g) password
and i get the following error message
-bash: syntax error near unexpected token `('
any ideas?
Thanks
Dan
03-31-2005, 03:15 PM
#2
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,821
you'd need to escape the brackets i.e. \(D\)
03-31-2005, 03:25 PM
#3
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Original Poster
Rep:
Chris thanks tried that
now i have a different error
/usr/bin/smbclient \\\\whitestar\\DC/\(G\) password
Domain=[WHITESTAR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
any ideas on that one?
04-01-2005, 02:28 AM
#4
LQ Newbie
Registered: Feb 2005
Location: Tampere, Finland
Distribution: Fedora Core 6
Posts: 26
Rep:
Note shielded space, if your share name is 'DC (G)'.
Code:
/usr/bin/smbclient \\\\whitestar\\DC\ \(G\) password
Another possibility is also to rename share.
04-01-2005, 08:37 AM
#5
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Original Poster
Rep:
thanks that got it
04-03-2005, 03:02 PM
#6
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Original Poster
Rep:
can anyone help with mounting the other drives?
i seem to have problems with them..
what command would i need to mount the d$ drive?
i seem to have a problem with the $ sign...
Last edited by just_dan; 04-03-2005 at 04:22 PM .
04-04-2005, 04:20 PM
#7
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Original Poster
Rep:
anyone? please?
04-06-2005, 02:04 PM
#8
Member
Registered: Dec 2004
Location: USA
Distribution: CentOS 4.4,Ubuntu 6.10&7.04,Win XP(the wife's)
Posts: 151
Rep:
It's been awhile but how does it handle quotes? //servername/"d$"
04-07-2005, 08:19 AM
#9
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Original Poster
Rep:
[root@localhost dan]# mount -t smbfs //whitestar/"D$" /mnt/whitestar/D/ -o username=dan
Password:
7009: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
[root@localhost dan]#
Last edited by just_dan; 04-07-2005 at 08:41 AM .
04-07-2005, 10:48 AM
#10
Member
Registered: Dec 2004
Location: USA
Distribution: CentOS 4.4,Ubuntu 6.10&7.04,Win XP(the wife's)
Posts: 151
Rep:
Is the whole D drive being shared? Or just MP3?
04-07-2005, 12:40 PM
#11
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Original Poster
Rep:
it is the whole drive.. sorry if its confusing.. its a hard drive full of mp3s
04-07-2005, 12:57 PM
#12
Member
Registered: Dec 2004
Location: USA
Distribution: CentOS 4.4,Ubuntu 6.10&7.04,Win XP(the wife's)
Posts: 151
Rep:
Well if this is the case, I would rename the share, dropping any $ you may have on the windows side. This will make everything just a little smoother.
04-07-2005, 01:09 PM
#13
Member
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Original Poster
Rep:
its ok i fixed it now
it appears that i can mount any of them that have "disk" after them the others wont
thanks for all your help guys
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 03:29 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News