Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question

Usually you just do

chgrp www-data yourfile
chmod g+rw yourfile
share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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