Hi Pam,

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

Pam Astor wrote:

Hi,

I’m trying to set up a private family web site for genealogy, and want to set up Apache Authorization access control for this site, and once the user has logged in has access to the entire site. I’ve been reading the info at _http://httpd.apache.org/docs/2.2/howto/auth.html_ to learn how to do this. I’m just planning on passing out the same username and password to all family members and allow everyone in the family to use the same username and password, to keep things simple. The server is running Centos 5.1.

The first problem I am running into – I’m trying to use the |_htpasswd_ <http://httpd.apache.org/docs/2.2/programs/htpasswd.html>| utility that came with Apache 2.2 to create a password file. The default location according to above URL is in |/usr/local/apache2/bin/htpasswd| but apparently it’s not located there in my install. |I tried creating a password file by executing htpasswd -c /passwd/passwords famsite but apparently ||_htpasswd_ <http://httpd.apache.org/docs/2.2/programs/htpasswd.html> is not in my path, I’m getting the “cannot create file /passwd/passwords famsite” error.|

Anyone know where the default location of htpasswd is on a centos 5.1 install? Or how to generate a password file on a centos 5.1 install?


------------------------------------------------------------------------
Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn how. <hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008>
------------------------------------------------------------------------

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to