I've noticed that Samba server logs to /var/log/smb.conf
and /var/log/messages
. How to disable logs from /var/log/messages
? I've tried to edit the rsyslog config file:
*.info;mail.none;authpriv.none;cron.none;smb.none /var/log/messages
- but this disabled all messages in /var/log/messages
System: CentOS 6.2
Samba Version 3.5.10-116.el6_2
Regards
Best Answer
The default logging for samba on CentOS is to log to
/var/log/samba/log.smbd
and out of the box thelog file
setting is/var/log/samba/%m
(the connecting machine log) so it looks like someone has made changes to at least some of the defaults.The smb.conf
syslog
directive says thisThis means that under default conditions LOG_ERR messages will be logged to syslog too. You gould put
in your
/etc/smb.conf
which should stop anything going to syslog.You'll need to check you .etc/samba/smb.conf file for
It would probably be a good idea to check through the smb.conf documentation too for other logging options.