New installation

Juergen Sandner juergen.sandner at baypol.bayern.de
Thu Jul 16 06:15:35 GMT 1998


Of course samba can handle encrypted passwords.
The configuration is just a little harder.
from the sample smb.conf:

--> # You may wish to use password encryption. Please read
--> # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba
documentation.
--> # Do not enable this option unless you have read those documents
-->  encrypt passwords = yes
-->   security = user

This is nearly all. You will have to set up a file named "smbpasswd",
which is
basically your "/etc/passwd" plus the user password, encrypted in two
different
ways. The passwords have to be the same as in the /etc/passwd file.
Use the command "<SAMBA_DIR>/bin/smbpasswd" for that.
Have a look at the option
; passwd chat = "*New password*" %n\n "*Re*new password*" %n\n
too, to change /etc/passwd and smbpasswd with one command.

You also could change your security level to "server" and ask your PDC
for
password validation. Then you don't need a "smbpasswd" file.
But as far as I know you still have to take care, to
use the same passwords on the PDC and the unix system (/etc/passwd or
shadow)
This means  you not only have to list the users, that use samba, in your
/etc/passwd,
but also have to take care to use the same passwords.

-->  # Security mode. Most people will want user level security. See
-->  # security_level.txt for details.
-->     security = server
-->  # Use password server option only with security = server
-->     password server = <NT-Server-Name>

Good luck

Juergen



More information about the samba mailing list