I am trying to run Samba on linux 7.2. When I run the smbpasswd utility, it returns an error "Failed to open etc/samba/secrets.tdb." This also shows in the log as: [2002/02/13 14:04:36, 0] passdb/secrets.c:secrets_init(47) Failed to open etc/samba/secrets.tdb I believe this is also preventing Samba from running at all: Here is the smb.conf file # Samba config file created using SWAT # from Lserver (127.0.0.1) # Date: 2002/02/08 15:33:39 # Global parameters [global] workgroup = WorkGroup netbios name = LSERVER server string = Linux_Server # interfaces = 192.0.0.199/24 # interfaces = 127.0.0.1 encrypt passwords = Yes security = user smb passwd file = etc/samba/smbpasswd log file = /var/log/samba/%m.log max log size = 10 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = False local master = No domain master = False dns proxy = No wins server = 192.0.0.181 name resolve order = hosts hosts allow = 192.0.0.199/24 192.0.0. 127.0.0.1 printing = lprng preserve case = No short preserve case = No [Root] comment = root drive path = / valid users = administrator read only = No [homes] comment = Home Directories valid users = %S #read only = No create mask = 0664 directory mask = 0775 [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [tmp] comment = Temporary file space path = /tmp read only = No guest ok = Yes -------------- next part -------------- HTML attachment scrubbed and removed
Hi Wade, Believe that you mean "/etc/samba" instead of "etc/samba" (no leading "/") - this is probably preventing samba from finding the file. Don -----Original Message----- From: Wade Novin [mailto:wnovin@sortlaw.com] Sent: Thursday, February 14, 2002 1:27 PM To: samba@lists.samba.org Subject: [Samba] Help with Password file I am trying to run Samba on linux 7.2. When I run the smbpasswd utility, it returns an error "Failed to open etc/samba/secrets.tdb." This also shows in the log as: [2002/02/13 14:04:36, 0] passdb/secrets.c:secrets_init(47) Failed to open etc/samba/secrets.tdb I believe this is also preventing Samba from running at all: Here is the smb.conf file # Samba config file created using SWAT # from Lserver (127.0.0.1) # Date: 2002/02/08 15:33:39 # Global parameters [global] workgroup = WorkGroup netbios name = LSERVER server string = Linux_Server # interfaces = 192.0.0.199/24 # interfaces = 127.0.0.1 encrypt passwords = Yes security = user smb passwd file = etc/samba/smbpasswd log file = /var/log/samba/%m.log max log size = 10 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = False local master = No domain master = False dns proxy = No wins server = 192.0.0.181 name resolve order = hosts hosts allow = 192.0.0.199/24 192.0.0. 127.0.0.1 printing = lprng preserve case = No short preserve case = No [Root] comment = root drive path = / valid users = administrator read only = No [homes] comment = Home Directories valid users = %S #read only = No create mask = 0664 directory mask = 0775 [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [tmp] comment = Temporary file space path = /tmp read only = No guest ok = Yes -------------- next part -------------- HTML attachment scrubbed and removed
> I am trying to run Samba on linux 7.2. When I run the smbpasswd utility, it > returns an error "Failed to open etc/samba/secrets.tdb." This also shows in > the log as: > > [2002/02/13 14:04:36, 0] passdb/secrets.c:secrets_init(47) > Failed to open etc/samba/secrets.tdb > > I believe this is also preventing Samba from running at all: > > Here is the smb.conf file > > > # Samba config file created using SWAT > # from Lserver (127.0.0.1) > # Date: 2002/02/08 15:33:39 > > # Global parameters > [global] > workgroup = WorkGroup > netbios name = LSERVER > server string = Linux_Server > # interfaces = 192.0.0.199/24 > # interfaces = 127.0.0.1 > encrypt passwords = Yes > security = user > smb passwd file = etc/samba/smbpasswdI guess this should be an absolute path, e.g. /etc/samba/smbpasswd or what ever it is on your system. Mark the / on the beginning. Christian> log file = /var/log/samba/%m.log > max log size = 10 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > preferred master = False > local master = No > domain master = False > dns proxy = No > wins server = 192.0.0.181 > name resolve order = hosts > hosts allow = 192.0.0.199/24 192.0.0. 127.0.0.1 > printing = lprng > preserve case = No > short preserve case = No > > [Root] > comment = root drive > path = / > valid users = administrator > read only = No > > [homes] > comment = Home Directories > valid users = %S > #read only = No > create mask = 0664 > directory mask = 0775 > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > > [tmp] > comment = Temporary file space > path = /tmp > read only = No > guest ok = Yes > >_(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^