Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
/usr/doc/packages/samba/ENCRYPTION.txt
).
mksmbpasswd.sh
. This is for creating a "special" password file
out of the existing one.
#!/bin/sh awk 'BEGIN {FS=":" printf("#\n# SMB password file.\n#\n") } { printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) } 'Example:
cat /etc/passwd | mksmbpasswd.sh > /etc/smbpasswd
,
or
ypcat passwd | mksmbpasswd.sh > /etc/smbpasswd
on a NIS server, or client, respectively.
chmod 600 /etc/smbpasswd
./etc/smbpasswd
has been set by default
by S.u.S.E.
/etc/smbpasswd
has been generated a password a user
has to be created. This is done by smbpasswd
. If any user may do
this the SETUID bit has to be set (chmod
u+s /usr/bin/smbpasswd
). Otherwise only root will be able to change
passwords.
/etc/smb.conf
(in global section):
encrypt passwords = yes
security = server password server = YOURSERVERMake sure that 'YOURSERVER' is the NetBIOS name of the server (NetBIOS and DNS may differ). NetBIOS names are restricted to a maximum of 15 letters. Of course you may not enter the options given above on the server itself. This would create an endless loop.
Important:
Please use an actual samba version (at least ersion 1.9.18p2)!
See also:
Keywords: SAMBA, NT, PASSWORD, VERSCHLÜSSELT
Categories:
Samba
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch