LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Adding user for password folder (https://www.linuxquestions.org/questions/linux-security-4/adding-user-for-password-folder-149859/)

tommytomato 02-24-2004 03:49 AM

Adding user for password folder
 
Hi guys for some reason i cant seem to add another user with password

here is what i'm doing

[root@www root]# htpasswd /var/www/pass/passwords/password username

answer
htpasswd: cannot modify file /var/www/pass/passwords/password; use '-c' to
create it
[root@www root]# htpasswd -c /var/www/pass/passwords/password username
htpasswd: cannot create file /var/www/pass/passwords/pasword


When i first create this a few weeks ago it went well
it will only let one user in..

TT

tommytomato 02-24-2004 04:07 AM

just an update

Now i get this

[root@www root]# htpasswd /var/www/pass/passwords Username
New password:
Re-type new password:

htpasswd: The file /var/www/pass/passwords does not appear to be a valid htpasswd file.
[root@www root]#

Do i have to rename my passwords to htpasswd ?

TT
:study:

Capt_Caveman 02-24-2004 05:14 AM

A couple of things to try:

1.Make sure that the directory you are trying to create the file in actually exists firsts. Then use the htpasswd -c to create it, then use just htpasswd by itself (w/o -c to add other users)

2. If that still doesn't work, it may not like the permissions on the directory or something.

I just tried it and it works for me on a FC1 box:
Code:

[root@Helios root]# mkdir /var/www/pass/
[root@Helios root]# htpasswd -c /var/www/pass/passwords user1
New password:
Re-type new password:
Adding password for user user1


tommytomato 02-24-2004 06:38 AM

Thank you

I see where i went wrong, it now works ok

thanks again


karl :study:


All times are GMT -5. The time now is 03:36 AM.