Panak Posted August 11, 2003 Share Posted August 11, 2003 Is there a way i could authenticate as the owner of a directory??? I would like to have read and write permissions in a folder but the nobody user(guest) must have only read permission in the same folder. .htaccess just does basic authentication but doesn\'t give me permission to write and locks the folder for the nobody user. Is this possible with Apache??? Quote Link to comment Share on other sites More sharing options...
rhysmeister Posted August 13, 2003 Share Posted August 13, 2003 I\'d create another folder that does the writing into the directory you speak of. That could be done simple with a .htaccess file. Otherwise you would use a database with usernames and passwords and only load a page if the username and password is present in the database. But I think it would be much simpler to put the write files into another directory. Quote Link to comment Share on other sites More sharing options...
rhysmeister Posted August 13, 2003 Share Posted August 13, 2003 This has been playing on my mind a little and I remembered something. Using the <Files> </Files> tag can protect specific files in a directory. i.e. <Files write1.php write2.php write3.php> htaccess lines.... ....... ........... <Files> I think it would be best to have different pages for the writing as I don\'t think there is a way for apache to assign users read / write permissions in the way you describe. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.