Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.