Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 1996 20:33:21 GMT
From:      James Raynard <fqueries@jraynard.demon.co.uk>
To:        paul@nation-net.com
Cc:        questions@freebsd.org
Subject:   Re: Help generating passwords for Apache users
Message-ID:  <199605092033.UAA11147@jraynard.demon.co.uk>
In-Reply-To: <31920D43.51C5@nation-net.com> (message from Paul Walsh on Thu, 09 May 1996 16:20:35 %2B0100)

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> Paul Walsh <paul@nation-net.com> writes:
> 
> Is there a utility in FreeBSD to generate encrypted passwords ( for use 
> in an Apache users file )
> or do I have to write a script myself using crypt() !?
> 
> Can I use adduser and then cut/paste from the passwd file?

You'd have to use vipw to view the encrypted password, as the passwd
file is shadowed and has a '*' where the password would be. And you
have to be root to run vipw.

It may well be more practical to write a short Perl script using the
crypt() function - this is how adduser uses it:-

$cryptpwd = crypt($password, &salt) if $password ne "";




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605092033.UAA11147>