Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 29453 invoked by uid 500); 9 Aug 2002 10:17:53 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 29442 invoked from network); 9 Aug 2002 10:17:52 -0000 Received: from ns0a.swx.com (146.109.240.107) by daedalus.apache.org with SMTP; 9 Aug 2002 10:17:52 -0000 Received: from gate0b.unix.swx.ch (gate0b [192.168.252.145]) by ns0a.swx.com (8.9.3+Sun/8.9.3) with ESMTP id MAA01513 for ; Fri, 9 Aug 2002 12:17:54 +0200 (MEST) Received: from SOMEXEVS001.ex.ordersx.org (localhost [127.0.0.1]) by gate0b.unix.swx.ch (8.9.3+Sun/8.9.3) with ESMTP id MAA01024 for ; Fri, 9 Aug 2002 12:17:54 +0200 (MEST) X-Authentication-Warning: gate0b.unix.swx.ch: iscan owned process doing -bs content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Subject: RE: htpasswd Date: Fri, 9 Aug 2002 12:17:54 +0200 Message-ID: <14D1193E30E0894D8A773957C0AEE24AAA8C24@SOMEXEVS001.ex.ordersx.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: htpasswd Thread-Index: AcI/iafXBXDaULWUR6yh6IuLLu1r5wAAgkPA From: "Boyle Owen" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >From: Philippe Dhont (Sea-ro) [mailto:Philippe.Dhont@searo.be] > >I have a little problem; >When i use >Htpasswd -c /..../bla/blabla... >I get the message: >Htpasswd: -c and -n options conflict > >What's the cause of this? As i see it there is no connection=20 >between -c and -n You see wrong. "-c" means create a file and put the user/pass pairs in = it. "-n" means send the output to STDOUT. How can the program do both? = They are mutually exclusive... The normal procedure is: - Make a file to begin with: htpasswd -c mypasswords.pwd joe this creates the file mypasswords.pwd with one user/pass pair (i.e. joe) = inside. - Later on, add more users: htpasswd mypasswords.pwd jim Note that there is now no "-c" switch since you no longer need to create = the file since it now exists. The user/pass for jim will be appended to = the file which now contains a user/pass pair for joe and jim. If you use the "-n" option, you get the user/pass pair on STDOUT (this = lets you use htpasswd as a system call in a pipeline or shell-script or = anything else), e.g. htpasswd -n joe joe:kjLNLO09.5W7 or all on the commandline (add the "-b" switch). htpasswd -nb joe abcwxyz joe:kjLNLO09.5W7 Rgds, Owen Boyle --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org