[Samba] Re: SWAT login fails
Eric S. Johansson
esj at harvee.org
Thu Jun 30 12:55:57 GMT 2005
Robert Vangel wrote:
> swat uses the samba usernames, so you first need to issue `smbpasswd -a
> root' if you haven't done so already.
trial samba # smbpasswd -a root
New SMB password:
Retype new SMB password:
Unable to open/create TDB passwd
pdb_getsampwnam: Unable to open TDB passwd (/etc/samba/private/passdb.tdb)!
I'm running as root. what's weird is that I have access to my [home]
directories without password request.
my smb.conf:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/06/30 07:14:43
# Global parameters
[global]
server string = Samba Server %v
map to guest = Bad User
smb passwd file = /etc/samba/private/smbpasswd
passdb backend = tdbsam:/etc/samba/private/passdb.tdb, smbpasswd, guest
log file = /var/log/samba3/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
ldap ssl = no
printer admin = @adm
[homes]
comment = Home Directories
read only = No
browseable = No
[public]
comment = Public Stuff
path = /home/samba/public
public = yes
writable = no
write list = @staff
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
browseable = No
[print$]
path = /var/lib/samba/printers
write list = @adm, root
guest ok = Yes
More information about the samba
mailing list