[Samba] using standalone unix passwords ?

Michael Heydon michaelh at jaswin.com.au
Tue May 29 04:57:00 GMT 2007

Yakov Lerner wrote:
> On 5/27/07, John H Terpstra <jht at samba.org> wrote:
>> On Saturday 26 May 2007 16:30, Yakov Lerner wrote:
>> > Which cmd.conf option let samba use (/etc/passwd,/etc/shadow) 
>> passwords
>> > without need to smnpasswd ?
>> > Thanks
>> > Yakov
>> Please explain more clearly. Are you asking how to set up guest access?
> No. There is specific Unix user X, and client uses
> mount -t smbfs -o username=X,password=... ... ...
> Basically, only user X is supposed to access the samba. I defined 
> security=user.
> But the convenient password setup for me would be the unix password of 
> X, not
> the separate smbpasswd. Can I tell smb.conf to use /etc/shadow 
> password instead
> of separate password defined by smbpasswd ?
> Yakov
The short answer is "don't". Windows sends passwords in an encrypted 
format that is not compatible with unix crypt. It has been done in the 
past, but there is no good reason to do it now. Use LDAP, once its set 
up properly its near impossible for your passwords to get out of sync.

-- Michael

More information about the samba mailing list