The following list summarizes the command-line utilities included with the Samba packages. Use the ‘which utility
‘ command to display the absolute pathname of the command. Include the output as an argument to the ‘rpm –qf
‘ command to display which Samba package provides the command.
For Example :
# which smbtree /bin/smbtree
# rpm -qf /bin/smbtree samba-client-4.6.2-12.el7_4.x86_64
The Samba command-line utilities include the following:
smbtree
: Is a text-based SMB network browsersmbclient
: Is an FTP-like client to access SMB/CIFS resources on serverssmbpasswd
: Is used to add or modify a user’s SMB passwordsmbcacls
: Modifies Windows ACLs on files and directories shared by a Samba server or a Windows servernmblookup
: Is used to query NetBIOS names and map them to IP addressesnet
: Is a tool for the administration of Samba and remote CIFS servers. It is designed to work like the net utility used for Windows and MS-DOS. The syntax is:
# net [protocol] [options]
The [protocol] argument specifies the protocol to use when executing a command. Specify the type of server connection by using ads (Active Directory), rap (Win9x/NT3), or rpc (Windows NT4/2000/2003/2008). If the protocol argument is not specified, net automatically tries to identify it. Use “net –h” for online help and usage examples.
rpcclient
: Is a tool for executing client-side Microsoft RPCs functionssmbcontrol
: Sends control messages to running smbd, nmbd, or winbindd daemonssmbspool
: Sends a print file to an SMB printersmbstatus
: Displays the status of current connections to a Samba serversmbtar
:Backs up and restores Windows-based share files and directories to a local Linux tape archivetestparm
: Checks the syntax of the /etc/samba/smb.conf filewbinfo
: Displays information from the winbindd daemon (The winbindd daemon must be running.)smbcquotas
: Manipulates quotas on NT file system (NTFS) SMB file sharessmbget
: Is a wget-like utility for downloading files over SMB