Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
General Linux > Samba > Issue <<  65 of 98 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 3490
Last update: 08-06-04
Issue:
How do I browse a Samba share from a terminal window or X-term?
Resolution:
This article assumes you have the samba-client package installed.

To verify:

  
$rpm -q samba-client
samba-client-3.0.4-6.3E
      


If it is not installed we have articles on how to install the samba-client package.

Open a terminal session and execute the following command:
smbclient //servername//share -U [username]
Where servername and share are the names of your Samba server and Samba share and [username] is a valid user on the Samba server.

You will then be prompted for a password. Once authenticated you will receive the smb command prompt:

smb: \>

Type help at the command prompt for the commands available. Your output should be similar to the following:

 
$smbclient //SambaServer/myshare -U user1
Password:
Domain=[Samba] OS=[Unix] Server=[Samba 3.0.4-6.3E]
smb: \> help
?              altname        archive        blocksize      cancel
cd             chmod          chown          del            dir
du             exit           get            hardlink       help
history        lcd            link           lowercase      ls
mask           md             mget           mkdir          more
mput           newer          open           print          printmode
prompt         put            pwd            q              queue
quit           rd             recurse        reget          rename
reput          rm             rmdir          setmode        symlink
tar            tarmode        translate      vuid           logon

!

smb: \>

      


For further options and information on the smbclient utility refer to the man page, man smbclient from the command line.


How well did this entry answer your question?


good wrong incomplete out of date
General Linux > Samba > Issue <<   65  of  98  >>