Work in progress
This site is in the process of being reviewed and updated.
Command Reference
You can discover the correct location by executing from the directory that contains the smbd command file:
root# smbd -b | grep smb.conf
Test your config file with testparm:
$ testparm /etc/samba/smb.conf
The smb.conf file is read constantly by the Samba daemons. For performance it is a good practice to keep this file as small as possible however this goes against principles of good documentation. The recommended solution is to use the testparm utility to generate a fully optimized smb.conf file from a documented configuration file:
$ testparm -s smb.conf.master > smb.conf
To list shares that are available from the configured Samba server, execute the following command:
$ smbclient -L yourhostname
EXAMPLE.COM\\rodriguez smbclient -L localhost -U rodriguez ssh EXAMPLE.COM\\rodriguez@localhost $ smbclient -L localhost -U%
Make an authenticated connection to the server using the smbclient tool:
$ smbclient //server/share -U EXAMPLE.COM\\user -D users/user
Issuing commands in a non-interactive way:
smbclient //server/share -U EXAMPLE.COM\\administrator -N -c "get file.txt file.txt"
Sanity checks:
wbinfo -t wbinfo -p wbinfo -g wbinfo -u | grep rodriguez wbinfo -a EXAMPLE.COM\\rodriguez%enrique id EXAMPLE.COM\\rodriguez smbclient //rio/rodriguez -U EXAMPLE.COM\\rodriguez smbclient -L rio -U rodriguez ssh EXAMPLE.COM\\rodriguez@localhost