[Samba] "Unable to open new log file"

Guido Lorenzutti guido at lorenzutti.com.ar
Sat Jul 8 04:35:01 GMT 2006


Im using debian sarge samba 3.0.14a with no problems.
I just upgraded to samba 3.0.22 to test it and i found the following
problem in the two seconds of testing it....

==> alem-tsii.log <==
[2006/07/08 01:17:49, 0] lib/debug.c:reopen_logs(597)
  Unable to open new log file /var/log/samba/alem-tsii.log: Permission
denied

muzik:/var/log/samba# cd ..
muzik:/var/log# ls -ld samba/
drwxr-x---  2 root adm 19456 2006-07-08 00:37 samba/
muzik:/var/log# ls -l samba/alem-tsii.log
-rw-r--r--  1 root root 660 2006-07-08 01:17 samba/alem-tsii.log


The file is created by the samba with this perms.. I can't monitor the
creation of the files and fix the perms to this to work.

Any ideas?

This is my config:

[global]
#Network ID
        workgroup = JUSBAIRES
        netbios name = MUZIK
        server string =
#Logs
        debug level = 0
        syslog = 0
        log level = 0
        log file = /var/log/samba/%m.log
        max log size = 5000
        panic action = /usr/share/samba/panic-action %d

#Network Support
        name resolve order = wins hosts lmhosts bcast
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
IPTOS_LOWDELAY SO_KEEPALIVE
        use sendfile = yes
        wins support = no
        wins proxy = no
        wins server = 10.1.0.1
        enhanced browsing = yes
        dns proxy = yes
        time server = yes
        smb ports = 139

#Printer Options
        printcap name = /dev/null
        printing = bsd
        load printers = no
        cups server = localhost

#Security Options
        security = domain
        password server = 10.1.0.1
        winbind use default domain = Yes
        winbind trusted domains only = Yes
        restrict anonymous = 1

[mp3s]
comment = MP3s
path = /home/mp3s/
public = no
writable = no
read only = yes


More information about the samba mailing list