LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-23-2004, 05:57 AM   #1
paul.nel
Member
 
Registered: Nov 2003
Location: Cape Town
Distribution: Gentoo, Redhat 9, SuSE 9.0, 9.2, Win XP
Posts: 149

Rep: Reputation: 15
Accessing samba shares from command line


Stupid question, how do I access samba shares from the command line?

Tx
p.n
 
Old 01-23-2004, 06:13 AM   #2
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15
if you've shared a folder on your XP machine as \\xpmachine\share you can mount it with
mount -t smbfs -o username=???,password=??? //xpmachine/share /somewhere/to/mount
or leave the ,password= bit out to be prompted for a password.
or use smbclient (use with --help to see options)
 
Old 01-23-2004, 09:36 AM   #3
paul.nel
Member
 
Registered: Nov 2003
Location: Cape Town
Distribution: Gentoo, Redhat 9, SuSE 9.0, 9.2, Win XP
Posts: 149

Original Poster
Rep: Reputation: 15
Is this the only way to access them from the command line? All my shares are already mounted and that is not a problem, I can obviously get to the mounted shares. My question really is if there is a quick and dirty way to access the other machines if I have drives that are not mounted? Eg $ //sharecomputer/sharedrive or whatever.

Tx
p.n
 
Old 01-23-2004, 11:39 AM   #4
sio
Member
 
Registered: Jul 2003
Location: Louisiana, US
Distribution: Slackware
Posts: 129

Rep: Reputation: 15
again, smbclient is what you want to use from the terminal.

Here it is in example for you:

smbclient //netbiosnameoripaddress/sharename -U anyusername

or if the share has spaces in the name you'll need to enclose in double quotes

smbclient "//netbiosnameoripaddress/share name" -U anyusername

if the share is public you shouldn't need to add the '-U anyusername' option. Although it will always prompt you for a password. If there is no password, leave it blank and hit enter. Thisll kick you into the smb prompt. Type help at the prompt

smb: \> help

for a list of commands. You should be able to manage it from there. Hope that helps.
 
Old 01-24-2004, 09:02 AM   #5
paul.nel
Member
 
Registered: Nov 2003
Location: Cape Town
Distribution: Gentoo, Redhat 9, SuSE 9.0, 9.2, Win XP
Posts: 149

Original Poster
Rep: Reputation: 15
Yip, sorted thanks.
p.n
 
  


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
Problem while accessing Samba Shares. duffmckagan Suse/Novell 16 09-22-2005 03:49 PM
Difficulty accessing SAMBA shares Tsarok Slackware 1 08-30-2005 10:16 PM
Accessing Samba shares from Fedora Core 2 NetAX Linux - Software 1 09-20-2004 07:21 PM
Accessing Samba Shares The_Q DamnSmallLinux 2 02-05-2004 05:36 AM
accessing samba shares is slow! kudos Linux - Software 2 11-26-2003 03:48 PM


All times are GMT -5. The time now is 02:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration