[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Samba: Can't Rename the Log File



>>>>> "HP" == HP-USA,ex1  <MCCALL> writes:

 HP> Hi palme,
 HP> I don't know anything about the debian distribution, but just to make 
 HP> sure that this isn't some issue with debian standard log directory, and 
 HP> log rollover, or wierd permission issues, maybe you could try this;
 HP> create a directory called /sambalog  and open it wide up;
 HP> chmod 777 /sambalog
 HP> Then change your log file entry in smb.conf to be
 HP> log file = /sambalog/log.%m

 HP> and see if you still get the problem with samba not being able to 
 HP> rename the logfiles...

 HP> Just a thought; maybe we can get some more data to lead us this way...
 HP> Don

I tried it out:

# grep -i log /etc/samba/smb.conf
        log file = /smbtest/smb
        max log size = 10
wrpc3# ll /smbtest/
insgesamt 11
-rw-r--r--    1 root     root        10357 Jun 27 13:46 smb
wrpc3# ll -d /smbtest/
drwxrwxrwx    2 root     root         1024 Jun 27 14:37 /smbtest/
wrpc3#

But after restarting smbd, it still uses /var/log/smb (and can't
rename it):

ll /var/log/smb
-rw-r--r--    1 root     root        10719 Jun 27 16:03 /var/log/smb
wrpc3#

Things become more and more strange (or do I??)

-- 
======================================================================
Hubert Palme         Bergische Universitaet-Gesamthochschule Wuppertal
                                      Computing  Center
                                      D-42097 Wuppertal
E-Mail: palme@uni-wuppertal.de             (Germany)
http://www.hrz.uni-wuppertal.de/hrz/personen/h_palme.html



Reply to: