From owner-freebsd-questions Thu May 9 23:12:14 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA15459 for questions-outgoing; Thu, 9 May 1996 23:12:14 -0700 (PDT) Received: from mailhub.aros.net (mailhub.aros.net [205.164.111.17]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA15448 for ; Thu, 9 May 1996 23:12:11 -0700 (PDT) Received: from terra.aros.net (terra.aros.net [205.164.111.10]) by mailhub.aros.net (8.7.5/Unknown) with ESMTP id AAA21260; Fri, 10 May 1996 00:32:28 -0600 (MDT) Received: (from angio@localhost) by terra.aros.net (8.7.5/8.6.12) id AAA24645; Fri, 10 May 1996 00:12:06 -0600 From: Dave Andersen Message-Id: <199605100612.AAA24645@terra.aros.net> Subject: Re: Help generating passwords for Apache users To: paul@nation-net.com Date: Fri, 10 May 1996 00:12:06 -0600 (MDT) Cc: questions@freebsd.org In-Reply-To: <199605092033.UAA11147@jraynard.demon.co.uk> from "James Raynard" at May 9, 96 08:33:21 pm X-Mailer: ELM [version 2.4 PL25 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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'."