Results 1 to 3 of 3
Thread: Samba Rejecting User root !
Enjoy an ad free experience by logging in. Not a member yet? Register.
[SOLVED] Samba Rejecting User root !
security = shareCode:
smbpasswd -a rootCode:
valid users = root user = root
However, when I try to log in as root with the password I put in to smbpasswd using smbclient I get the following
smbclient //hostname/sharename -U root%password tree connect failed: NT_STATUS_WRONG_PASSWORD
Dec 25 20:07:35 hostname smbd: [2006/12/25 20:07:35, 0] passdb/pampass.c:smb_pam_passcheck(827) Dec 25 20:07:35 hostname smbd: smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User root ! Dec 25 20:07:35 hostname PAM-warn: function=[pam_sm_authenticate] service=[samba] terminal=[samba] user=[root] ruser=[<unknown>] rhost=[mymachine.mydomain.com]
I have been googling all over the place but the answers I have found say that I need to put in an smbpasswd, but I have put in an smbpasswd!
try setting the "smb passwd file" option in smb.conf to something like /var/lib/samba/private/smbpasswdLife is complex, it has a real part and an imaginary part.
I figured it out. The problem was it was a very old installation of samba where the default was to not encrypt passwords and I have to explicitly tell it to encrypt them, whereas in the modern versions this is the default and I omit it.