[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] access resticted to all users of a virtual site
- Subject: RE: [cobalt-users] access resticted to all users of a virtual site
- From: "Robert Fitzpatrick" <robert@xxxxxxxxxxx>
- Date: Thu Mar 27 06:13:01 2003
- Organization: WebTent Networking, Inc.
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>
> (I want all registered users to have access with their
> own passwd and also to be able to give a "guest"
> access for demo purpose without having to create an
> account that has others privileges)
>
Try this, not sure if it would work, let me know if it does:
# .htaccess file
order allow,deny
allow from all
require valid-user group site#
AuthName "Access Restricted"
AuthPAM_Enabled off
Authtype Basic
AuthUserFile /home/sites/site#/web/path/to/password/file/.htpasswd
<Limit GET POST>
require valid-user
</Limit>
Of course, you'll need to populate your .htpasswd file with your guest
account credentials.
--
Robert