Subject: Re: samba, netbsd and internal network
To: None <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 10/09/2002 23:06:32
On Wed, Oct 09, 2002 at 03:54:43PM -0500, email@example.com wrote:
> Once upon a time Manuel Bouyersaid:
> > Well, this is another problem. I think it's the "encrypt passwd"
> > parameter, or something like that. But you'll have to disable encyption
> > on the client side as well (see samba docs for details), and your
> > passwd will go plaintext over the wire.
> Well, I have about 2000 users on a unix machine, and I want the windows
> clients to use the user database on the unix machine (when they try to
> access shares on that machine). I don't want to add every user to the
> smbpasswd file. Or, is there a script that will convert the unix passwd
> to a smbpasswd file?
Well, no, as you can't decrypt the unix passwd.
I've made a small suid C program which asks the user it's unix passwd
(I got this part from the NetBSD passwd program) and then call smbpasswd -a
to add its login to the smbpasswd database, prompting for a passwd.
So each user can add itself to the smbpasswd database.
Unfortunably I've lost the sources in an OS upgrade :(
Manuel Bouyer <firstname.lastname@example.org>