The Samba-Bugzilla – Bug 503
smb.conf log file statement non compatible with logrotate
Last modified: 2005-08-24 10:21:21 UTC
Please throw this bug report away if you find it irrelevant.
The smb.conf file have the statement 'log file = /usr/samba/var/log.%m'
This requires a file statement in the logrotate config file as:
This will move
/usr/samba/var/log.nmdb to /usr/samba/var/log.nmdb.1.gz the first week
Next week will you get
since /usr/samba/var/log.nmdb.1.gz also matches in the logrotate config file.
I propose that the log file statement should be changed to
'log file = /usr/samba/var/%m.log'
This will make logrotate much easier to configure.
actually %m.log was at one point a source of a security hole
due to variable expansion based on strings sent from the client.
A better solution is to simply put all the log information in
log file = /var/log/log/smbd.log
I'll look into this.
set log file to smbd.log for smb.conf.default, RedHat and Fedora packages
originally reported against one of the 3.0.0rc[1-4] releases.
Cleaning up non-production versions.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.