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

RE: htaccess



> is there an option in htaccess usage that will allow any user within a
> specific group to be authorized to login?

Instead doing a require user directive, use a require group.


The directory you want protected must have an .htaccess file in it that
looks like the following:

AuthUserFile /usr/home/user/.htpasswd   #file where username and password
are stored
AuthGroupFile /usr/home/user/.htgroup   #file where group information is
stored
AuthName Consultants                  #name of site that appears at password
prompt
AuthType Basic
<Limit GET>
require group consultants             #the only group that can get material
from this directory
</Limit>

Then you must have a .htgroup with the following:
consultants:bob joe tom


Of course you would rename the group consultants to what ever you wanted and
use whatever user names you wanted instead of bob, joe, tom.  Each of the
users must also have their username/pass combination in .htpasswd


Justin R. Meats
(217) 221-0664
Internet Partners, Inc.
justin@internetpartners.com <mailto:justin@internetpartners.com>
http://www.internetpartners.com <http://www.internetpartners.com/>

-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.