How to use /etc/passwd passwords for NTDOM?

Samuel James Johnston samj at cse.unsw.EDU.AU
Mon Feb 23 02:08:24 GMT 1998

You'll be doing well if you manage to work out how to do this. The UNIX
password file contains one way encryptions of the users passwords. ie the
password is encrypted using the password and a salt as the key, or
thereabouts. To create the hashes needed in smbpasswd files you need the
original (cleartext) password. Thus, unless you want to crack each line of
the UNIX password file, you have little or no chance of achieving this.

mkpasswd works only as well as is possible. Perhaps you could modify the
passwd (or dare I say, login) executables to update the smbpasswd file.
These are about the only two processes that ever get to see your password.

Remember too that the smbpasswd file contains passowrd equivalents, so be
careful about where you put it/who can see it.

Hope this helps,

Sam Johnston

On Sat, 21 Feb 1998, Gerald W. Carter wrote:

> Nuno Loureiro wrote:
> > 
> > Is there any automatic way of converting /etc/passwd (or shadow) to
> > smbpasswd? mkpasswd doesn't seem to work well (it doesn't convert the
> > passwords, instead it puts XXXX.... in the smb password field).
> Short answer.  No this is no automatic way of doing this.  Sorry.  
> I welcome corrections if I am wrong on this one.
> j-
> -- 
> ________________________________________________________________________
>                             Gerald ( Jerry ) Carter	
> Engineering Network Services                           Auburn University 
> jerry at   
>        "...a hundred billion castaways looking for a home."
>                                   - Sting "Message in a Bottle" ( 1979 )

More information about the samba-ntdom mailing list