How to sync /etc/smbpasswd with /etc/passwd ?
Christian Barth
barth at cck.uni-kl.de
Tue Dec 8 16:54:42 GMT 1998
> On Tue, Dec 08, 1998 at 10:15:21AM +0000, Christian Barth wrote:
> > > I just want a /etc/smbpasswd generated from my /etc/passwd with the correct=
> > > passwords as used for the UniX login...
> > > Is that possible ?
> > No!
> >
> > It is not possible to confert the encrypted /etc/passwd passwords to
> > encrypted /etc/smbpasswd passwords without knowing the clear text
> > password.
>
> Yes, that's obvious. Let me rephrase my question:
> Can I generate a /etc/smbpasswd file from my /etc/passwd BUT use the passwords
> in /etc/passwd for authentication ?
> A sysadmin can't really be asked to generate a /etc/smbpasswd and THEN ask all
> users to fill in a password using the smbpasswd command !
>
> Or perhaps it is possible to use /etc/smbpasswd but just put some placeholder
> +::::: in like for NIS which will fill in the users in /etc/passwd ???
I'm not sure what you want to do.
In the samba package there is ah shell skript called like
"mksmbpasswd". It uses /etc/passwd to bild an smbpasswd with all
"XXXXXXX.....XXX" as passwords. You can then use "update encrypted"
to generate the encrypted passwords as soon as samba fetches a
plain text password of a user.
But propably that's not what you are looking for.
Christian
More information about the samba
mailing list