Weird Samba user glitch? -Cannot remove a user that definitely appears
Hello, using linux mint 12. samba was originally configured with the gadmin app.
I logged on today, and noticed that there were 2x "samba" users in the list, so I deleted one..
Now, the one that is left... the password cannot be changed, (although the gadmin app doesn't notify of failure), and users cannot log in with the samba account.
At this point I stopped using the gadmin applet.
Now, using pdbedit -Lv shows this for samba:
Interestingly, when you run pdbedit -Lw it shows this (looks like a blank hash) password:
Unix username: samba
Account Flags: [U ]
User SID: S-1-5-21-1787190218-2025653600-1497103768-501
Primary Group SID: S-1-5-21-1787190218-2025653600-1497103768-513
HomeDir Drive: (null)
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: 0
Password can change: 0
Password must change: 0
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Running pdbedit -x -u samba yields this result:
Running pdbedit -a samba yields this result (after asking and confirming a password)
user samba does not exist in the passdb
Any idea how I can remove this user so I can actually configure it properly?
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user samba.
smb.conf: (without shares)
server string = %h server (Samba, LinuxMint)
map to guest = Bad User
obey pam restrictions = Yes
guest account = samba
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
guest ok = Yes