Server Fault is a question and answer site for system and network administrators. 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

The whole Linux user:group topic just gives me headaches again.


I have my document roots (httpdocs) and everything inside chown-ed to a certain user and a certain group, let's say myuser:mygroup.

chown -R myuser:mygroup httpdocs

Now apache doesn't have access to let's say a public images folder. So I add apache to mygroup, for example with:

usermod -a -G mygroup apache


Any file or folder which I chmod to 775 should now give apache write permission, not? Doesn't happen... do I have to reload, restart or else reinitiate something for this to happen or do I still just not get the whole thing.

share|improve this question

Did you restart apache after making the change? The groups will only be enumerated for the apache account when apache server is restarted.

share|improve this answer
no I didn't... so there must be another way to cause the enumeration... – markus Mar 1 '11 at 20:31

Well, I just realized that it works as I described it. Don't know why the lag, maybe I just didn't properly refresh the browser or maybe CentOS reads the group file after every X minutes or who knows. But the scenario as I described it, works.

share|improve this answer

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.