Topic: linux permissions (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=32009" title="Pages that link to Topic: linux permissions (Page 1 of 1)" rel="nofollow" >Topic: linux permissions <span class="small">(Page 1 of 1)</span>\

 
Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

IP logged posted posted 10-06-2010 07:44 Edit Quote

I need to setup the correct permissions to allow a php script to create files and write to them in a separate directory on the server for logging. Can someone recommend the best way to do this?

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 10-06-2010 10:07 Edit Quote

Depends on the webserver setup,
but given a webserver www-data and the folder beloning to 'boudga', which are in the same group,
0770 should do it.

Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

IP logged posted posted 10-07-2010 00:25 Edit Quote

the script writes the file with ownership of nobody:nobody and I chmod'd the files with 0755 and everything works now



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu