March 13th, 2012, 05:49 PM
Apache linux permissions/owners
I'm playing with Apache on my home computer running Slackware. It's not a production environment but still I'd like to get correct ownership/permissions. I'd like to be able to add/modify files as a standard user. The root directory is in:
At the moment the default files (index.html) in there have the following ownership/permissions:
What I'd have to change to be able to add/modify the files there as a standard user? I mean I know how to change it in linux. I just don't know what exactly to change? Shall I change the whole /src/www/htdocs to be owned by the standard user? Should I make it rw to everyone? What the best way of solving it?
-rw-r--r-- 1 root root 44 Nov 20 2004 index.html
March 13th, 2012, 05:58 PM
chmod would probably be set to 755 (rwxr-xr-x)
If the standard user is to have access to the whole dir, then give them ownership. Otherwise, give them access to the files they do have access to.
Generally, a standard user would be given there own folder and have ownership of the folder (and all files within) created for them.
"I don't need to get a life. I'm a gamer. I have lots of lives!"
March 13th, 2012, 06:09 PM
Originally Posted by hiker
chmod -R 755 htdocs
chown -R portia.users htdocs