Kestutis Saldziunas
2002-Feb-05 02:09 UTC
[Samba] Error:Unable to open configuration file "/usr/local/samba/lib/smb.conf"
Hello, I upgraded Samba server to 2.2.3. Server starts normally, however I find error, after starting the server, in /usr/local/samba/var/log.smbd file: [2002/02/05 10:48:11, 0] param/params.c:OpenConfFile(543) params.c:OpenConfFile() - Unable to open configuration file "/usr/local/samba/lib/smb.conf": I keep file smb.conf in /etc directory and also in my scripts I point to this place: SMB_BIN=/usr/local/samba/sbin/smbd NMB_BIN=/usr/local/samba/sbin/nmbd SMB_CONF=/etc/smb.conf SMB_PID=/usr/local/samba/var/locks/smbd.pid NMB_PID=/usr/local/samba/var/locks/nmbd.pid After I copied smb.conf to usr/local/samba/lib/ directory , I do not find error no more. But I do not like maintain two files :( What are ideas to solve this problem ? Thanks in advance, Kestutis -------------- next part -------------- HTML attachment scrubbed and removed
Ken Cobler
2002-Feb-05 07:47 UTC
[Samba] Error:Unable to open configuration file "/usr/local/samba/lib/smb.conf"
Kestutis Saldziunas wrote:> Hello, I upgraded Samba server to 2.2.3. Server starts normally, > however I find error, after starting the server, > in/usr/local/samba/var/log.smbd file: [2002/02/05 10:48:11, 0] > param/params.c:OpenConfFile(543) > params.c:OpenConfFile() - Unable to open configuration file > "/usr/local/samba/lib/smb.conf": I keep file smb.conf in /etc > directory and also in my scripts I point to this > place: SMB_BIN=/usr/local/samba/sbin/smbd > NMB_BIN=/usr/local/samba/sbin/nmbd > SMB_CONF=/etc/smb.conf > SMB_PID=/usr/local/samba/var/locks/smbd.pid > NMB_PID=/usr/local/samba/var/locks/nmbd.pid After I copied smb.conf to > usr/local/samba/lib/ directory , I do not find error no more. But I do > not like maintain two files :(What are ideas to solve this problem ?symbolic link the file: ln -s /etc/smb.conf /usr/local/samba/lib Ken Cobler
Martyn Ranyard
2002-Feb-05 14:14 UTC
[Samba] Error:Unable to open configuration file "/usr/local/samba/lib/smb.conf"
I've met this beast before. Location of smbpasswd is a configure-time option, you have two options really : 1. (easiest) make a link, rather than copy i.e. "ln -s /etc/smb.conf /usr/local/samba/lib/smb.conf" or "ln -s /usr/local/samba/lib/smb.conf /etc/smb.conf" depending on which way you want to point. 2. (recommended) rerun configure with the option --with-configdir=/etc Hope this helps. At 11:07 AM 2/5/02 +0200, Kestutis Saldziunas wrote:>Hello, > >I upgraded Samba server to 2.2.3. Server starts normally, however I find >error, after starting the server, in >/usr/local/samba/var/log.smbd file: > >[2002/02/05 10:48:11, 0] param/params.c:OpenConfFile(543) > params.c:OpenConfFile() - Unable to open configuration file > "/usr/local/samba/lib/smb.conf": > >I keep file smb.conf in /etc directory and also in my scripts I point to >this place: > >SMB_BIN=/usr/local/samba/sbin/smbd >NMB_BIN=/usr/local/samba/sbin/nmbd >SMB_CONF=/etc/smb.conf >SMB_PID=/usr/local/samba/var/locks/smbd.pid >NMB_PID=/usr/local/samba/var/locks/nmbd.pid > >After I copied smb.conf to usr/local/samba/lib/ directory , I do not find >error no more. But I do not like maintain two files :( >What are ideas to solve this problem ? > >Thanks in advance, > >Kestutis > > >=============Martyn Ranyard