Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about access

Status
Not open for further replies.

crashuk

Technical User
Sep 12, 2005
77
GB

is there any way to insert permissions in the .htpassword file? or any other file?
example
joe can read but not write when he logs on
mike can read and write when he logs on?

the .htaccess file is in the root folder
AuthUserFile C:\.htpassword
AuthType Basic
AuthName "My Secret Folder"
Require valid-user

httpd.conf
AllowOverride AuthConfig

.htpassword is in C:\.htpassword
 
this is what iam looking for

joe can read but not write when he logs on
mike can read and write when he logs on
how would you create something like that?
 
Yes, that will work, but put it in httpd.conf not in .htpasswd

Sometimes this is done in an .htaccess file if overrides are needed at a subdirectory level, but there is substantial overhead to parsing all the .htaccess files

You can do like this to control what directories are protected.

<Location ~ /protected/folder>
<Limit POST PUT DELETE>
Require user mike
</Limit>
</Location>

\0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top