Bluehost.com Web Hosting $6.95

[Samba] why both smbd.log and log.smbd?

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 ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-05-2008
David Mathog
 
Posts: n/a
Default [Samba] why both smbd.log and log.smbd?

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

Reply With Quote
  #2 (permalink)  
Old 09-05-2008
Herb Lewis
 
Posts: n/a
Default Re: [Samba] why both smbd.log and log.smbd?

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

Reply With Quote
  #3 (permalink)  
Old 09-05-2008
John H Terpstra
 
Posts: n/a
Default Re: [Samba] why both smbd.log and log.smbd?

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0