Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: samba and encrypted passwords

Alan Hodgson
Sun, 27 Sep 1998 22:20:57 -0700

On Mon, Sep 28, 1998 at 03:53:48AM +0000, Vlad Petersen wrote:
> a script that syncs /etc/passwd with smbpasswd.

Not exactly. You can create a brand new smbpasswd file with the
mksmbpasswd.sh script. This will create smbpasswd entries for
every user in /etc/passwd, though, so you need to go clean it
out.

The way passwords are encrypted in this file is different that
in /etc/passwd, so by default your passwords are null. A good
idea is to run the script to create the file, clean it out,
then add:

update encrypted = yes
use encrypted = no

to your [global] smb.conf options. Get everyone to login at least
once, which will update the encrypted passwords in the smbpasswd
file (you can always just get them to telnet in and run smbpasswd
too, I know, but these are Windoze users ;).

After everyone's passwords are updated, set use encrypted = yes and
you're set.

>On IRIX I
> installed Samba in /usr/samba and smbpasswd file went to
> /usr/samba/private/ but on Linux (I guess) it's in /etc.

Well, it's one of the compile-time options. The RedHat RPM's by default
do store it in /etc, although that can also be overridden by the
"smb passwd file" option in smb.conf.

Also, the original poster can find details of the registry change
required for NT 4.0 Service Pack 3 systems to permit clear text
passwords in the samba docs/WinNT.txt file.

- Alan