[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] unSubscribe
- Subject: [cobalt-developers] unSubscribe
- From: "Supachai Sukhanindr,Ph.D." <sidney@xxxxxxxxxxx>
- Date: Fri Jan 4 08:36:26 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx [mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of John D. Gorena
Sent: Friday, January 04, 2002 11:34 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] EASY password protected directory
"Mr. Kevin Rinehart" wrote:
> Hello,
>
> Please inform of the best way to create a password protected members
> area on the RAQ 3i server for a client.
>
> Kind Regards,
>
> Kevin
I'm not sure exactly which way you are asking, therefore I will give both ways
that I know of here: Individual login and system wide login. If anyone know
so f a way to limit the login to site administrators only, then please let me
know directly.
1) A Specific login name and password
a. Telnet in, and login as the User or admin or root
b. Navigate to the directory you want to password protect.
c. Create the .htaccess file in the directory (example: pico .htaccess), 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 DirectoryName with anything that you want - if you want.
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.
d. Now you must create the .htpasswd file using the htpasswd tool.
i. Type the following command to create the file and add a user:
ii. /usr/bin/htpasswd -c .htpasswd username OR
/home/chiliasp/admin/conf/htpasswd -c .htpasswd username
iii. You will be prompted for the users' password twice.
e. If you need to add additional users to the file, use the command above
without the -c.
2) FOR AN ACCESS FILE FOR ALL ACTIVE E-Mail USERS on the whole server, use:
# Access file
order allow,deny
allow from all
require valid-user
Authname "Customer-Area"
AuthPAM_Enabled on
Authtype Basic
AuthUserFile /etc/shadow
There is no need to create htpasswd file with method 2.
I Hope that this helps.
John
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers