From owner-freebsd-isp Mon Apr 7 12:29:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA04114 for isp-outgoing; Mon, 7 Apr 1997 12:29:22 -0700 (PDT) Received: from aviion.ts.kiev.ua (aviion.ts.kiev.ua [193.124.229.12]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA04092 for ; Mon, 7 Apr 1997 12:29:10 -0700 (PDT) Received: from nbki.ipri.kiev.ua by aviion.ts.kiev.ua with ESMTP id SAA27634; (8.6.11/zah/2.1) Mon, 7 Apr 1997 18:56:19 GMT Received: from cki.ipri.kiev.ua by nbki.ipri.kiev.ua with ESMTP id QAA00061; (8.6.9/zah/1.1) Mon, 7 Apr 1997 16:38:38 +0100 Received: from 194.44.146.14 (mac.ipri.kiev.ua [194.44.146.14]) by cki.ipri.kiev.ua (8.7.6/8.7.3) with SMTP id PAA10998; Mon, 7 Apr 1997 15:56:22 +0300 (EET DST) Message-ID: <3348E12E.78EF@cki.ipri.kiev.ua> Date: Mon, 07 Apr 1997 14:57:34 +0300 From: Ruslan Shevchenko Reply-To: rssh@cki.ipri.kiev.ua Organization: IPRI X-Mailer: Mozilla 3.01Gold (Macintosh; I; 68K) MIME-Version: 1.0 To: Alexander Snarskii CC: freebsd-isp@freebsd.org Subject: Re: Webserver, htpasswd program. References: <199704071149.OAA17314@burka.carrier.kiev.ua> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Alexander Snarskii wrote: > > In article <334792FE.289@cki.ipri.kiev.ua> you wrote: > >> > >> When I installed the OS, Apache seemed to install fine. However, > >> how I am putting a .htaccess file on a subtree of web data, and > >> I can't find the 'htpasswd' program to create a password file. > >> > >> Does anyone know what I should do? Also, could anyone tell me how > >> to use the UNIX passwd file instead of the one created by htpasswd? > >> > > RS>Yo can manually put /etc/passwd in you directory, > RS>with you file name (.htaccess) > RS>and it must work > > Ruslan, it will not work.. Just because /etc/passwd in FreeBSD > does not contain encrypted passwords. > You need to use /etc/master.passwd instead. O, yes. It is /etc/master.passwd > > RS>(On my mashine such think is work, but i got only > RS>first 2 fields from /etc/passwd (removing all others) > In principle, it is trivial to determinate, that under /etc/passwd means /etc/master.passwd from words "first 2 fiellds" So, sorry, you must copy /etc/master.passwd instead of /etc/passwd. In other all is true, this method is usable. > -- > Alexander Snarskii > the source code is included.