various small problems with (bugs in?) Samba 2.2

Patrick Goetz pgoetz at
Tue May 1 21:58:35 GMT 2001

Here is a collection of problems I've encountered with Samba 2.2

1. Log files

I configured Samba with --prefix=/opt/samba.  Consequently, by default, I
get log files /opt/samba/var/log.nmbd and /opt/samba/var/log.smbd .

I'd prefer have a single log file in /var/log, however, adding the line

    log file = /var/log/samba.log

to the [global] section of smb.conf and restarting the daemons doesn't
seem to do anything -- the logs still get written to /opt/samba/var/*.

2. PID files

Ideally I'd like to be able to have an init.d script to start|stop|restart
smbd and nmbd.  Unfortunately I can't find any place where a pid file is
written, although the man page for smbcontrol mentions an  Since
nmbd always seem to start with 2 copies anyway, I'm not sure a single pid
file would help anyway, though.  I thought smbcontrol was something like
apachectl, but it appears not to be; i.e. the man page gives no
indication of how one would use it to start stop smbd/nmbd.  The Debian
version of Samba 2.07 does come with a init.d/samba script (albeit a
terribly fubar'ed one) which must work for 2.07 -- is there any way to get
this functionality in 2.2?

3. Domain Users

On a W2K machine (with Samba 2.2 PDC), whenever I try to add "Domain
Users" to the list of users with permissions on, say, the spool director
(although the same thing happens in any permission granting situation), I
always get the message "Unable to lookup user names for display" and
nothing is added to the list of users with permissions.  Adding individual
users from the domain works fine.  Perhaps I'm confused about what "Domain
Users" means -- I just assumed it meant grant this permission to anyone
connecting from this particular NT domain.

More information about the samba-ntdom mailing list