1

I am trying to execute a script that will read a file written by PHP. The problem is that the script opens and some other files (C-ISAM file based database) and i have no clue what permisions to give at these files.. Should i add www-data to my group ?

1

Usually you just do

chgrp www-data yourfile
chmod g+rw yourfile
  • my files are already to a group which shouldnt change. – GorillaApe Sep 19 '11 at 11:17
  • Does the server support ACLs? Do you have root access? – Kim Sep 19 '11 at 11:59
  • i have root access.I dont know what ACL is. I tried with sudoers file but it asks me for password for www-data when i try to use sudo. – GorillaApe Sep 19 '11 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.