Subject: Re: samba, netbsd and internal network
To: None <>
From: Manuel Bouyer <>
List: netbsd-users
Date: 10/09/2002 23:06:32
On Wed, Oct 09, 2002 at 03:54:43PM -0500, 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 <>