Network Administration: Samba Client

Samba includes a program called smbclient that lets you access Windows file servers from a Linux computer. The smbclient program works much like an FTP client, so if you’ve used FTP before, you’ll have no trouble understanding how it works.


Smbclient is a command line tool, so you need to log on to a virtual console or open a terminal window. Then, enter the smbclient command, followed by the server and share name, like this:


smbclient //server01/share01

When the client successfully accesses the share, you are greeted by the friendly SMB prompt:


smb:\>

Then, you can enter smbclient commands to access the data in the shared directory. The following table summarizes the more common commands that are available at the smb:\> prompt.





















































Commonly Used smbclient Commands
CommandDescription
cd directoryChanges to the specified directory on the remote system.
del filenameDeletes the specified file or files on the remote system.
dirLists files in the current directory on the remote system.
exitTerminates the session.
get remote-file local-fileCopies the specified remote file to the specified local
file.
lcd directoryChanges the local current directory to the specified
directory.
md directoryCreates a directory on the remote system.
mget wildcard-maskCopies all files that match the wildcard mask from the remote
system to the local system.
mput wildcard-maskCopies all files that match the wildcard mask from the local
system to the remote system.
put local-file remote-fileCopies the specified file from the local system to the remote
system.
rd directoryDeletes the specified directory on the remote system.



dummies

Source:http://www.dummies.com/how-to/content/network-administration-samba-client.html

No comments:

Post a Comment