[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Samba encrypted passwd file



Kent West <kent.west@infotech.acu.edu> wrote:

>  According to the Encryption.txt doc file for Samba, the command to
> create the encrypted password file is:
>  cat /etc/passwd | mksmbpasswd.sh > /usr/local/samba/private/smbpasswd
> but when I run this I can a error:
>  bash: mksmbpasswd.sh: command not found

See samba's postinst script to see how it is done 
(/var/lib/dpkg/info/samba.postinst).

> Is the documentation wrong, or am I missing a file? I've tried to
> "locate mksmbpasswd*" but found nothing.

Make that "locate mksmbpasswd" (without the '*').

> Also, doesn't this copy the /etc/password file? But if I'm running
> shadow passwords, doesn't that mean the encrypted file won't be able to
> find the passwords?

The only thing that mksmbpasswd does is to copy the user names and IDs
from the /etc/passwd to /etc/smbpasswd, nothing else. Passwords in the
just created smbpasswd file are XXXXXXXXXXXXXX so you will have to 
run smbpasswd to set the password for each user in the smbpasswd file
(Unix hashes are different than NT hashes, so there is no automatic
way to convert Unix hashes to NT hashes).

peloy.-


Reply to: