[CentOS] Apache Authorization Access Control - location of htpasswd in Centos 5.1?

Pam Astor pamastor at hotmail.com
Mon Apr 7 01:09:54 UTC 2008


> just my two cents. The command 'htpasswd -c /passwd/passwords famsite' > will do two things: create the password file called passwords in the > /passwd directory, and add the user famsite to it. So, the directory > /passwd must exist, and you did that. However, passwords is a file and > you said you created that directory. This is wrong. If it existed as a > file then htpasswd would recreate it (with the -c option) but I don't > think it would work if passwords was a directory.> > Because you're doing all this as root I don't think it's a permission > problem. However, as others pointed out, because the passwords file will > have to be accessible by the user who runs Apache, then you will need to > sort that out later.> > Hope this helps. Also, if you type just htpasswd with nothing else you > should have a nice help.> > Giulio
 
 
AAhhhh - Thanks Giulio!
 
That was the problem I feel pretty dumb now :)
I deleted the password dir, then chmoded 777 passwd instead,
re ran the command and htpasswd created the user and password AOK.
Thanks again, now on to step two...
_________________________________________________________________
Going green? See the top 12 foods to eat organic.
http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080406/856a0c0c/attachment.html>


More information about the CentOS mailing list