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 |
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: |
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/ |
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. |