Creating standalone passwords in /etc/passwd format
Lowell Gilbert
freebsd-questions-local at be-well.ilk.org
Tue Aug 16 13:57:08 GMT 2005
Please don't top-post.
Gareth Bailey <gjbailey at gmail.com> writes:
> I have had a look at crypt (enigma), but it doesn't appear to use the
> same algorithm?
Correct.
> I need the same as that used in passwd!
The algorithm is selectable; the mechanism is crypt(3).
The standard utility for what you are trying to do is openssl(1).
It used to be makekey(1), but that has been obsoleted by openssl.
> Thanks
>
> On 8/15/05, Gareth Bailey <gjbailey at gmail.com> wrote:
> > Hi there,
> >
> > I am using pserver for authentication on CVS. Rather than use the same
> > passwords as in /etc/passwd, I'd rather create different ones for
> > users. How would I output a password to, for example, a text file in
> > the same format as that of /etc/passwd.
> >
> > i.e: # xxx mynewpassword > encrypted_password.txt
> >
> >
> > Thanks!
> >
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
--
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
More information about the freebsd-questions
mailing list