Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

1 Answer 1

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. –  xiongtx Apr 28 '12 at 6:55
add comment

Your Answer

 
discard

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.