How can I give another user on the server the same read/write access permissions just like when I am logged in as root?

link|improve this question
1  
An apache user? You mean the user which apache runs as? Are you sure you want to give the web server full root access? Might it be a specific resource / directory you need it to be able to write to? – andol Dec 10 '09 at 17:27
Why would you need this? – dlo Dec 10 '09 at 17:28
And yes, this would be for a specific directory – Amy Dec 10 '09 at 17:49
Make sure that the directory which can be written to isn't configured to execute php or cgi scripts. Most ideally, make it so it can't even be served out by Apache at all. (If you need to re-display the saved information, use a program to fetch and output it.) This will save you a whole lot of pain later. – mattdm Nov 20 '10 at 22:42
feedback

1 Answer

chown owner:group file. Typically with apache, you want the apache user and group to own very few files, because those accounts are, by necessity, exposed.

Sounds like you really need to set up some user groups as well. Staying logged in as root when performing routine tasks is an accident waiting to happen.

link|improve this answer
I just want to make sure, I understand. First I add a group: groupadd group name then add the specified user to the group: useradd -G group name username but now I am a little confused about the 'chown' part. – Amy Dec 10 '09 at 17:55
Chown is "Change Ownership", so you're giving ownership of the files to your group, so that you can control read/write settings at the group level, rather than having to try and control it at the individual user level. – Satanicpuppy Dec 10 '09 at 18:00
feedback

Your Answer

 
or
required, but never shown