Webmasters Stack Exchange is a question and answer site for pro webmasters. 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'm previewing my site as I work on it using httpd, but I had to move it into the /var/www/html directory.

Now I have to log in as root every time I want to modify a file, and it's difficult to use the GUI file manager (Nautilus on Fedora 16) to do anything.

What are some ways of making it easier to modify files while still begin able to preview them on a local server? Maybe this is more of a question about permissions on Linux...not sure.

share|improve this question
up vote 2 down vote accepted

You should add all the files below /www/html to a user group of which your regular shell account is also a member of and that group has RW access to those files, this way you don't have to login as root to modify files.

share|improve this answer
Great, that's what I was looking for. – Tianxiang Xiong Apr 28 '12 at 6:55

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.