httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Ringrow" <ch...@ringrow.co.uk>
Subject RE: htpasswd sets size of passwd file to 0 ?
Date Mon, 07 Jan 2002 20:23:12 GMT
Thanks for the help!

With some help from demon.net I found the problem.
The /var/tmp directory was full !
Keep up the good work !
Reagrds Chris Ringrow

-----Original Message-----
From: obo@bourse.ch [mailto:obo@bourse.ch]
Sent: 07 January 2002 08:27
To: users@httpd.apache.org
Subject: Re: htpasswd sets size of passwd file to 0 ?


Chris Ringrow wrote:
> 
> I have been running a web site on apache on a Sun SPARC station
> for over a year with no problems etc.
> 
> However now when I try to add a new password using a
> command line like
> 
> htpasswd -b /usr/local/apache/vhosts/ecert/passwords/.htpasswd username
> password
> 
> This has worked fine for over a year, but know, all of a sudden, it
> empties the file .htpasswd ( ls -al shows the size to be 0 )
> which removes all of the other user names and passwords from the file.
> 
> Has anyone seen this behaviour before or is anyone able to shed any
> light on it ?

This shouldn't happen. Are you *sure* that this is the command you are
issuing? Check that you are not using the "-c" switch which creates a
new password file (although even this should not empty the file...).

Test the command in the /tmp directory to see if it works:

$ cd /tmp
$ htpasswd -b -c test.pwd fred flintsone
$ htpasswd -b test.pwd barney rubble
$ more test.pwd

should show two lines

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message