Page 274 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 274
Network Operating Systems-I
notes passdb backend = smbpasswd
passdb expand explicit = No
The mask directives determine the local file permissions for any new files or directories that
are formed in any of the shared resources. These global values can be overriden for each share,
allowing for finer control of permissions.
Example:
create mask = 0644
directory mask = 0755
Using all of the above configurations, the Samba server will now be configured to run on the
suitable network and can be seen from your Windows based clients, however no network shares
or user access has been granted yet.
Samba offer a small test application that reads the configuration file and tests it for any errors,
this ensures that the new configuration should be excepted by the server. Any errors should be
fixed before restarting the server and loading the faulty configuration.
The following testparm output is from a configuration file that has only the [global] section (as
per all of the above settings), no other share sections have yet been defined.
Example:
[bash]# testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
The appropriate runlevels that the service will operate at can now be set and checked.
Example:
[bash]# chkconfig --level 345 smb on
[bash]# chkconfig --list smb
All of the global section options have now been specified for your configuration and the server
can now be started. Be sure to check all the log files to ensure the server started cleanly and there
are no errors.
Example:
[bash]# /etc/init.d/smb restart
[bash]# tail -n 50 /var/log/messages
[bash]# cat /var/log/samba/smbd.log
[bash]# cat /var/log/samba/nmbd.log
If any of the server’s networking parameters have been attuned, it may take a few minutes before
the server can be seen from the Windows client after restarting the smb service.
Both of the smbd and nmbd daemons are happening by the initscripts. Any command line options
that need to be specified for the daemons can be listed in the “/etc/sysconfig/samba” file.
[bash]# vi /etc/sysconfig/samba
268 LoveLy professionaL university