Date: Mon, 13 May 1996 15:49:19 +0000 (GMT) From: Gabor Zahemszky <zgabor@CoDe.hu> To: fqueries@jraynard.demon.co.uk (James Raynard) Cc: freebsd-questions@freebsd.org Subject: Re: Help generating passwords for Apache users Message-ID: <199605131549.PAA00340@CoDe.CoDe.hu> In-Reply-To: <199605092033.UAA11147@jraynard.demon.co.uk> from "James Raynard" at May 9, 96 08:33:21 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 ""; > I don't know, but if I remember well, there is a makekey utility, to do it from command line. (OK, I know that it is an AT&T command, and not so popular in a BSD-base user land.) -- Gabor Zahemszky <zgabor@CoDe.hu> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605131549.PAA00340>