[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] how can one make a passwd page
- Subject: RE: [cobalt-users] how can one make a passwd page
- From: "John Cordeiro" <jcordeiro@xxxxxxxx>
- Date: Thu Nov 2 12:29:00 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
>How can one make easy a passworded page like there is for /siteadmine etc ?
>any hints?
>
This must be done through a telnet session on your RAQ3.
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:
to password protect a users directory named joe under the main site the
syntax would look like this.
/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.
John Cordeiro