Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 1996 09:34:28 +1000 (EST)
From:      Anthony Hill <ahill@interconnect.com.au>
To:        jolp <jolp@peerlogic.com>
Cc:        questions@FreeBSD.com
Subject:   Re: where's crypt(1)
Message-ID:  <Pine.BSI.3.91.960520093029.28380A-100000@tulpi.interconnect.com.au>
In-Reply-To: <19c16520@peerlogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 16 May 1996, jolp wrote:

>      
>      Is there any way to set a user's password non-interactively?
>      
>      passwd doesn't seem to work with stdin.  Also, the chpass program requires 
>      modules (DES) that have been left out of the 2.1.0 release.
>      
>      Can anyone tell me wher I can get the other modules?

You can write an expect script that uses the passwd command, or you can use 
the perl 'crypt' command, and write a script that encypts the password and 
writes it directly to the master.passwd file. (steal ideas from the 
'adduser' script in 2.1R.)

Anthony




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.91.960520093029.28380A-100000>