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 Answer 1

1

Usually you just do

chgrp www-data yourfile
chmod g+rw yourfile
3
  • my files are already to a group which shouldnt change.
    – GorillaApe
    Sep 19, 2011 at 11:17
  • Does the server support ACLs? Do you have root access?
    – Kim
    Sep 19, 2011 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, 2011 at 13:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .