Results 1 to 6 of 6
How would I give configuration permissions to a user without giving them the root password. I know this is bad, but I do everything as root, so I can do ...
- 08-18-2005 #1Just Joined!
- Join Date
- May 2005
- Posts
- 21
Giving users access to apache
How would I give configuration permissions to a user without giving them the root password. I know this is bad, but I do everything as root, so I can do anything. A regular user account is so restricted in what it can do, it drives me nuts. However, I'm hosting a MUD for a friend, and now he wants to put a webpage on there, and I said thats fine if he can get it working, since I have never used it, and don't have time to figure it out right now, but I dont want to give him my root password. I feel stupid asking this question, because its a breeze to do in windows, but never had to do it on a linux based system. Can I add him to a group that will give him permission to do this? Any assistance is appreciated.
- 08-18-2005 #2
All you need to do is add the user to the apache group

As root:this will give them access to files which are in the apache group (which should be the config files etc of apache).Code:usermod -G apache username
- 08-18-2005 #3Just Joined!
- Join Date
- May 2005
- Posts
- 21
That didn't work. I got back unkown group error. My server runs apache2, I tried the command with both apache and apache2 as the group name, both with the same error.
- 08-19-2005 #4
Ok, let's create the group useing groupadd
then say you want the group to have access to /etc/apache.conf then doCode:groupadd -f apache
and you can set the permisions the group has over that file withCode:chgrp /etc/apache.conf
this wil give the owner (which is root in this example) read (4), write (2), and execute (1), permissions with the first number, the same to the group with the second number, and then no rights to anyone elseCode:chmod 770
- 08-19-2005 #5Just Joined!
- Join Date
- May 2005
- Posts
- 21
That was too easy, I should have been able to figure that out, but oh well
Thanks for you help!
- 08-19-2005 #6
Glad you got it up and runnig, groups are a very useful thing


Reply With Quote
