[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] PASSWORD PROTECTION PROBLEMS
- Subject: RE: [cobalt-users] PASSWORD PROTECTION PROBLEMS
- From: "Dan Kriwitsky" <webhosting@xxxxxxxxx>
- Date: Tue Mar 26 21:24:10 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I want to password protect a directory on a virtual site...
> /home/sites/www.test.com/web/to_protect
This used to be on the Cobalt site:
1. Telnet in, and login as the User or admin
2. Navigate to the directory you want to password protect.
3. Create the .htaccess file, it should contain the following lines:
# Access file
order allow,deny
allow from all
require valid-user
Authname DirectoryName
AuthPAM_Enabled off
Authtype Basic
AuthUserFile /home/sites/sitename/web/directory/.htpasswd
Replace sitename and directory as appropriate.
Note: If you want to use the systems' /etc/passwd file for
authentication
you can eliminate the AuthUserFile line from the .htaccess file above.
4. Now you must create the .htpasswd file using the htpasswd tool.
a. Type the following command to create the file and add a user:
htpasswd -c .htpasswd username
b. You will be prompted for the users' password twice.
5. If you need to add additional users to the file, use the command
above
without the -c.
--
Dan Kriwitsky
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com