On Sun, Nov 26, 2000 at 10:34:58PM +0100, ebirn-lists wrote:
hi all!
i have a question concerning samba
at the installation configuration the system's users are all added to the
/etc/samba/smbpasswd file
i deleted them accidentally and ow i'm looking for a way to restore this.
the mksmbpasswd man-page was not very useful to me
it might also be important that i use shadow/md5 passwords
i think (its been awhile) mksmbpasswd works something like this:
cat /etc/passwd | mksmbpasswd /etc/samba/smbpasswd
or maybe its just mksmbpasswd /etc/samba/smbpasswd. that part is
really easy, just play with it a bit.
the hard/annoying part is there is no way to convert the hashed
passwords in /etc/shadow or /etc/passwd into samba hashs, so you have
to manually run smbpasswd for each user you need enabled in
/etc/samba/smbpasswd. by default all users have locked accounts for
samba (X... for a password hash)
--
Ethan Benson
http://www.alaska.net/~erbenson/
pgpSMi9JtPSpE.pgp
Description: PGP signature