[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] How to set up password protected directories on RAQ4 server?
- Subject: RE: [cobalt-users] How to set up password protected directories on RAQ4 server?
- From: "John Cordeiro" <jcordeiro@xxxxxxxxxxxxxxx>
- Date: Mon Dec 11 09:50:01 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
How can I password protect a users directory on my RAQ?
This must be done through a telnet session on your RAQ.
In this example we will show you how to password protect a users web
directory. You can use this example to protect any directory on you RAQ buy
substituting the correct site# for <site> and or User name or Directory for
<username>.
1. Telnet to the RAQ and login as admin
2. change to root (Type su and then the superuser password)
3. change to the users home directory (Type cd
/home/sites/<site>/users/<username>) use home in place of <Site> for the
main RAQ site.
4. Create the .htaccess file (Type pico .htaccess) this will create a buffer
in pico cut and paste the following or type exactly as is:
# Access file
order allow,deny
allow from all
require valid-user
Authname DirectoryName
Authtype Basic
AuthUserFile /home/sites/<site>/users/<username>/.htpasswd
*** Note the .htpasswd file should not reside in a web accessiable folder.
5. Now create the .htpasswd file (Type /usr/sbin/htpasswd -c
/home/sites/<site>/users/<username> <alloweduser>)
sub the username to allow for the <alloweduser>. You will be prompted for
the users password 2 times.
Example:
/usr/sbin/htpasswd -c /home/sites/home/users/joe/.htpasswd joe
Enter passwd:*******
Re-Enter Passwd *******
Done.
** Note: When adding additional users to the site exclude the -c (create new
file) from the command line.
Hope this helps some of your users.
John Cordeiro