[nzlug] File permission dummy questions
Craig Box
craig at dubculture.co.nz
Fri Aug 11 14:36:45 NZST 2006
Sid Bachtiar wrote:
> I've been trying all sorts of commands for this but never got it
> working as I thought it should. Perhaps someone can help me out.
>
> I have a folder /var/www which is apache root directory. When I did
> "sudo chmod 774 -R /var/www", I didn't seem to have access to it even
> though my login is part of group root. All this time I had to sudo
> chmod 777 or otherwise I can't work on the file without sudo. I tried
> "sudo chgrp -R root /var/www" but it didn't seem to make any
> difference. May be I'm missing something here?
I like to change the ownership to something like www-data (chown -R
www-data.www-data /var/www) and then add yourself to the www-data group
(usermod -G www-data sid).
Craig
More information about the NZLUG
mailing list