This is a discussion on [Samba] why both smbd.log and log.smbd? within the Samba forums, part of the Networking and Network Related category; Our smb.conf file contains: log file = /var/log/samba/%m.log yet the /var/log/samba directory has all ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Our smb.conf file contains:
log file = /var/log/samba/%m.log yet the /var/log/samba directory has all of these: smbd.log log.smbd nmbd.log log.nmbd I verified that the %m.log forms are from the log file line by temporarily changing it to foo_%m.log. Using "lsof" I was able to see that the log.%m forms are from the smbd and nbmd processes. Why are these other two forms, which do not respect the "log file" setting, present? Thanks, David Mathog mathog@caltech.edu Manager, Sequence Analysis Facility, Biology Division, Caltech -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba |
|
|||
|
If you look at the contents of those files, they contain
the messages that go out before smb.conf is parsed. Those are the compiled in default names. David Mathog wrote: > Our smb.conf file contains: > > log file = /var/log/samba/%m.log > > yet the /var/log/samba directory has all of these: > > smbd.log > log.smbd > nmbd.log > log.nmbd > > I verified that the %m.log forms are from the log file line by > temporarily changing it to foo_%m.log. Using "lsof" I was able to see > that the log.%m forms are from the smbd and nbmd processes. > > Why are these other two forms, which do not respect the "log file" > setting, present? > > Thanks, > > David Mathog > mathog@caltech.edu > Manager, Sequence Analysis Facility, Biology Division, Caltech -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba |
|
|||
|
On Thursday 04 September 2008 17:47:59 David Mathog wrote:
> Our smb.conf file contains: > > log file = /var/log/samba/%m.log > > yet the /var/log/samba directory has all of these: > > smbd.log > log.smbd > nmbd.log > log.nmbd > > I verified that the %m.log forms are from the log file line by > temporarily changing it to foo_%m.log. Using "lsof" I was able to see > that the log.%m forms are from the smbd and nbmd processes. > > Why are these other two forms, which do not respect the "log file" > setting, present? Because the log.smbd and log.nmbd are created before the daemons have fully parsed smb.conf, so the "log file= parameter has not yet been acted upon. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba |