Results 1 to 3 of 3
I am having a lot of trouble trying to get one particular machine to allow for a root login to samba. I have set Code: security = share and done ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-25-2006 #1
[SOLVED] Samba Rejecting User root !
I am having a lot of trouble trying to get one particular machine to allow for a root login to samba. I have setCode:
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!
- 12-28-2006 #2
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.
- 12-28-2006 #3
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.