[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] htaccess revisited



Yes I read the following article I found:
1. Telnet in, and login as the user.
2. Create the .htaccess file, it should contain the following lines:
# Access file
order allow, deny
allow from all
require valid-user
Authname DirectoryName
Authtype Basic
AuthUserFile /home/sites/sitename/.htpasswd
NOTE: The AuthUserFile should be in the directory that you want to password
protect. The above example shows how to protect a users home page, to use
the htpasswd for all current registered RaQ users enter /etc/htpasswd for
the AuthUserFile.
Skip step three if you are using the /etc/htpasswd file for your
authorization.
3. Now we want to create the htpasswd file using the htpasswd command in the
/usr/bin/ directory.
type:
/usr/sbin/htpasswd -c /home/sites/home/users/.htpasswd username
*It will prompt you for the password twice
------------------------------------------------------
What I do is telnet in as it says then type in pico members (the directory
that needs it) and follow the instructions. After I control "o" and it tells
me that it already exists which in fact we do have another directory in that
site protected it is called members (but in different directory). Does this
mean I can htaccess one directory per domain? Help please before I hit the
liquor cabinet.
TIA
Frank