Hello all, I am having a problem with Samba version 2.0.7 running on Solaris 2.7 and the way the log files are kept. In my smb.conf file I have "max log size 2000", "log level = 2" and "log file = /var/opt/samba/log.%U". All of this works fine and does what one would expect. With this configuration on a busy system when the log file reaches its max size and gets rolled over to "log.user.old" some of the "smbd" daemons are still writing to it. This is not a problem in its self, but the next time that "log.user" gets rolled over and "log.user.old" gets remove and some "smbd" daemons are still writing to "log.user.old". I now have a file with out a name that is being written to by a daemon that is still working. Every one is happy for several days, then the file system the logs are on fills up and I have no file to remove. My only option is to kill the smbd process that is holding the removed file open. This drops the connections to that smbd and causes problems to our application. Is there any way to force the running processes ( smbd ) to switch log files? Is there another answer to this problem that I have not seen? Any help would be appreciated. Rich Wachter Z-Tel Communications, Inc. Z-Line 404-946-3148 -= Windows may break but the Sun will always shine =-
I'm running Mandrake 8.1 with Samba 2.2.2. Client is W2K. I'm having a problem where my W2K machine cannot connect to my samba server. I've found something interesting in my log file. It says it cannot open /etc/samba/smb.conf. However when I run testparm finds it. Any ideas why I would get these errors in my log file? root@mail samba]# testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[public]" Loaded services file OK. /etc/samba/smb.conf: -------------------- [global] workgroup = CCNETWORK netbios name = LINUX server string = Samba Server %v encrypt passwords = Yes update encrypted = Yes map to guest = Bad User root directory = /usr/samba log file = /var/log/samba/log.%m max log size = 50 large readwrite = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = lpstat preferred master = False local master = No domain master = False printing = cups [homes] comment = Home Directories read only = No create mask = 0750 browseable = No log.smbd -------- 2002/02/20 19:43:25, 0] lib/debug.c:reopen_logs(337) Unable to open new log file /var/log/samba/log.daniel: No such file or directory [2002/02/20 19:43:25, 0] param/params.c:OpenConfFile(543) params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf": No such file or directory
What are the permission on your /etc/samba/smb.conf and /var/log/samba? Joel On Wed, Feb 20, 2002 at 08:02:59PM -0600, Daniel S. Carlson wrote:> 2002/02/20 19:43:25, 0] lib/debug.c:reopen_logs(337) > Unable to open new log file /var/log/samba/log.daniel: No such file or > directory > [2002/02/20 19:43:25, 0] param/params.c:OpenConfFile(543) > params.c:OpenConfFile() - Unable to open configuration file > "/etc/samba/smb.conf": > No such file or directory >
drwxr-xr-x 2 root root 4096 Feb 20 19:50 samba/ -rw-r--r-- 1 root root 953 Feb 20 19:20 smb.conf -----Original Message----- From: Joel Hammer [mailto:Joel@HammersHome.com] Sent: Wednesday, February 20, 2002 8:27 PM To: Daniel S. Carlson; samba@lists.samba.org Subject: Re: [Samba] Log file problems What are the permission on your /etc/samba/smb.conf and /var/log/samba? Joel On Wed, Feb 20, 2002 at 08:02:59PM -0600, Daniel S. Carlson wrote:> 2002/02/20 19:43:25, 0] lib/debug.c:reopen_logs(337) > Unable to open new log file /var/log/samba/log.daniel: No such file or > directory > [2002/02/20 19:43:25, 0] param/params.c:OpenConfFile(543) > params.c:OpenConfFile() - Unable to open configuration file > "/etc/samba/smb.conf": > No such file or directory >