Now we can test if the configuration is correct by using testparm.
[root@machinename samba]/usr/bin/testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[tmp]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions
Once you press enter, you should see something like this
# Global parameters
[global]
workgroup = Myworkgroup
server string = Machinename Samba Server
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
hosts allow = 192.168.1.
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Temporary file space
path = /tmp/
read only = No
guest ok = Yes
This implies your configuration is ok and you are all set to start using Samba.You can also configure Samba so that members of a group can share files among themselves by using [groups] option in smb.conf file. This will be very helpful in an organization with different departments.