Date: Fri, 10 May 1996 00:12:06 -0600 (MDT) From: Dave Andersen <angio@aros.net> To: paul@nation-net.com Cc: questions@freebsd.org Subject: Re: Help generating passwords for Apache users Message-ID: <199605100612.AAA24645@terra.aros.net> 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
Lo and behold, James Raynard once said: > > 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. Actually, you can just look at the /etc/master.passwd file directly as root. But your next solution is much better in any respect. > 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 ""; -- angio@aros.net Complete virtual hosting and business-oriented system administration Internet services. (WWW, FTP, email) http://www.aros.net/ http://www.aros.net/about/virtual "There are only two industries that refer to thier customers as 'users'."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605100612.AAA24645>