From owner-freebsd-isp Thu Apr 9 19:02:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA28104 for freebsd-isp-outgoing; Thu, 9 Apr 1998 19:02:19 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mercury.jorsm.com (mercury.jorsm.com [207.112.128.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA28098 for ; Thu, 9 Apr 1998 19:02:13 -0700 (PDT) (envelope-from jeff@mercury.jorsm.com) Received: from localhost (jeff@localhost) by mercury.jorsm.com (8.8.7/8.8.7) with SMTP id VAA00248; Thu, 9 Apr 1998 21:02:02 -0500 (CDT) Date: Thu, 9 Apr 1998 21:02:02 -0500 (CDT) From: Jeff Lynch To: Susie Ward cc: freebsd-isp@FreeBSD.ORG Subject: Re: passwd to .htpasswd script In-Reply-To: <3.0.32.19980409194530.006be410@mail.voltage.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 9 Apr 1998, Susie Ward wrote: > Does anyone know of a script to convert the passwd file into an .htpasswd > file for securing a web directory? > > Thanks, > > Susie Sure, cat /etc/master.passwd | awk -F: {printf("%s:%s\n", $1, $2)} But I wouldn't necessarily recommend it. At the very least delete your system and "important" logins. It is discouraged to use of the same passwords in .htpasswd files that protect meaningful or priveledged shell accounts because rouge server cgi's can get stored passwords from the password cache. ========================================================================= Jeffrey A. Lynch JORSM Internet email: jeff@jorsm.com Northwest Indiana's Full-Service Provider Voice: (219)322-2180 927 Sheffield Avenue, Dyer, IN 46311 Autoresponse: info@jorsm.com http://www.jorsm.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message