Book Image

Learning RHEL Networking

By : Andrew Mallett, Adam Miller
Book Image

Learning RHEL Networking

By: Andrew Mallett, Adam Miller

Overview of this book

Table of Contents (18 chapters)
Learning RHEL Networking
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Troubleshooting Samba


If we are having problems with Samba, we can always check the output from the testparm command again and ensure that we have not missed anything vital. We can check which setting is valid from the man pages for smb.conf should be concerned over some settings.

We can also check the log files. These are located in the /var/log/samba/ directory.

There will be logs that represent client access, as shown in the following command:

log.<client ip-address>

OR:

log.<client-hostname>

There will also be the log.smbd daemon log.

If you need more details on the daemon log, set the log level attribute in the [global] section of the smb.conf as follows:

log level = 3

This raises the verbosity of logging, which may help. We suggest not leaving the level set this high and removing the setting when it's no longer required. The log level can be configured from 0 to 10, where 0 is low and 10 is high, but level 3 is as verbose as most people will need.