Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.dfn.de!news.uni-jena.de!news.HRZ.HAB-Weimar.DE!News.HTWM.De!news.tu-chemnitz.de!irz401!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: HTTPd htpasswd Date: 20 Feb 1996 01:09:59 GMT Organization: Private BSD site, Dresden Lines: 22 Message-ID: <4gb717$d34@uriah.heep.sax.de> References: <4g38na$2jm@news.ee.net> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.3 lockjaw@lockjaw.netserve.net (lockjaw) writes: > > I need either a port or precompiled version of the NCSA/Apache htpasswd > program or similar. > > I'm running Apache 1.0.2 from the FreeBSD archive Unpack the apache source. It's in the /cdrom/ports/distfiles, and it contains the source code of htpasswd.c. If all you need is a single new entry for your .htpasswd file, for user `joe' with the password `randompass', you can also use: perl -e 'srand(time);$salt=sprintf("%02x",rand(0xff));\ print $ARGV[0] . ":" . crypt($ARGV[1], $salt) . "\n"' joe randompass -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)