Jump to content

Permisions


Panak

Recommended Posts

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???

Link to comment
https://forums.phpfreaks.com/topic/873-permisions/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/873-permisions/#findComment-2957
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/873-permisions/#findComment-2960
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.