[Samba] Multiple daemon log files.

G.W. Haywood samba at jubileegroup.co.uk
Sat Mar 28 17:48:49 GMT 2009


Hi there,

On Fri, 27 Mar 2009, Jeremy Allison wrote:

> On Fri, Mar 27, 2009 at 03:32:18PM +0000, G.W. Haywood wrote:
> >
> > The testparm utility reports no errors in smb.conf.  I have the line
> >
> >   log file = /var/log/samba/log.%m
> >
> > in smb.conf which I took to mean logs for machines will be written in
> > the /var/log/samba directory, but not logs for the daemons.  To put my
> > mind at rest, should I also expect the daemon logs (or parts of them??)
> > to be written there too, or is this a bug, or might this be a symptom
> > of my ill-advised tinkering?
>
> Ill advised thinking :-). All logs will we written in that
> directory.

Nope.  If it's supposed to be that way, then this is a bug.

/usr/local/samba/var:
drwx------ 5 root staff   4096 2009-03-26 14:30 cores
drwxr-sr-x 3 root staff   4096 2009-03-27 14:20 old
-rw-r--r-- 1 root staff    370 2009-03-27 16:52 log.winbindd
-rw-r--r-- 1 root staff    360 2009-03-27 16:52 log.smbd
-rw-r--r-- 1 root staff   2773 2009-03-28 13:37 log.wb-XXX
-rw-r--r-- 1 root staff      0 2009-03-28 13:39 log.winbindd-idmap
-rw-r--r-- 1 root staff    133 2009-03-28 13:39 log.winbindd-dc-connect
drwxr-sr-x 6 root staff   4096 2009-03-28 17:28 locks
-rw-r--r-- 1 root staff 103862 2009-03-28 17:33 log.nmbd

/var/log/samba:
drwx------ 5 root root  4096 2008-06-20 15:01 cores
-rw-r--r-- 1 root root   700 2009-03-27 19:26 log.192.168.0.250
-rw-r--r-- 1 root root  1219 2009-03-27 19:27 log.palatine
-rw-r--r-- 1 root root   842 2009-03-28 13:28 log.xxxxxxxxxxx-045
-rw-r--r-- 1 root root   350 2009-03-28 13:28 log.192.168.0.16
-rw-r--r-- 1 root root  1522 2009-03-28 13:39 log.smbd
-rw-r--r-- 1 root root  1025 2009-03-28 13:39 log.0.0.0.0
-rw-r--r-- 1 root root  5076 2009-03-28 13:39 log.winbindd
-rw-r--r-- 1 root root  1524 2009-03-28 13:39 log.192.168.0.10
-rw-r--r-- 1 root root 15998 2009-03-28 17:33 log.server

Some files are written to one directory, some to the other.  Some
(e.g. log.winbindd, log.smbd) change from one to the other after
reading the configuration, some (e.g. log.nmbd) don't.

--

73,
Ged.


More information about the samba mailing list