LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-31-2005, 04:06 PM   #1
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Rep: Reputation: 15
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
 
Old 03-31-2005, 04:15 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
you'd need to escape the brackets i.e. \(D\)
 
Old 03-31-2005, 04:25 PM   #3
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Original Poster
Rep: Reputation: 15
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?
 
Old 04-01-2005, 03:28 AM   #4
Jamo
LQ Newbie
 
Registered: Feb 2005
Location: Tampere, Finland
Distribution: Fedora Core 6
Posts: 26

Rep: Reputation: 15
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.
 
Old 04-01-2005, 09:37 AM   #5
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Original Poster
Rep: Reputation: 15
thanks that got it
 
Old 04-03-2005, 04:02 PM   #6
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Original Poster
Rep: Reputation: 15
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 05:22 PM.
 
Old 04-04-2005, 05:20 PM   #7
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Original Poster
Rep: Reputation: 15
anyone? please?
 
Old 04-06-2005, 03:04 PM   #8
sbassett
Member
 
Registered: Dec 2004
Location: USA
Distribution: CentOS 4.4,Ubuntu 6.10&7.04,Win XP(the wife's)
Posts: 151

Rep: Reputation: 30
It's been awhile but how does it handle quotes? //servername/"d$"
 
Old 04-07-2005, 09:19 AM   #9
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Original Poster
Rep: Reputation: 15
[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 09:41 AM.
 
Old 04-07-2005, 11:48 AM   #10
sbassett
Member
 
Registered: Dec 2004
Location: USA
Distribution: CentOS 4.4,Ubuntu 6.10&7.04,Win XP(the wife's)
Posts: 151

Rep: Reputation: 30
Is the whole D drive being shared? Or just MP3?
 
Old 04-07-2005, 01:40 PM   #11
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Original Poster
Rep: Reputation: 15
it is the whole drive.. sorry if its confusing.. its a hard drive full of mp3s
 
Old 04-07-2005, 01:57 PM   #12
sbassett
Member
 
Registered: Dec 2004
Location: USA
Distribution: CentOS 4.4,Ubuntu 6.10&7.04,Win XP(the wife's)
Posts: 151

Rep: Reputation: 30
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.
 
Old 04-07-2005, 02:09 PM   #13
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command line to Exiting X windows ? Nauht Linux - General 2 11-22-2005 07:37 PM
X Windows + KDE from Command Line RedHatCore Linux - Software 1 08-11-2005 10:07 PM
Accessing samba shares from command line paul.nel Linux - Software 4 01-24-2004 09:02 AM
share a samba directory with the command line Mugatu Linux - Software 2 01-08-2004 02:44 PM
mount of samba share hangs on command line Gates1026 Linux - Software 2 11-19-2003 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration