LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   creating groups, adding users, and setting permissions (https://www.linuxquestions.org/questions/linux-newbie-8/creating-groups-adding-users-and-setting-permissions-385819/)

bowie101 11-23-2005 09:24 AM

creating groups, adding users, and setting permissions
 
Hi. I'm a newbie, of course, with a newbie question.

We have a Red Hat enterprise server. I want to create a group called "web", that gives access to the apache part of the server, and only the apache web server part. I'd then like to add preexisting users to it, giving them some of the groups permissions, but not all (excluding access to certain subdirectories or something).

How do I do this?

I've looked and whenever I look for directions on creating groups, I run into the basic instructions for creating a new user, and they also belong to a group of the exact same username, and changing permissions, etc.

But I'm talking about new groups, with various levels of permissions. Maybe my searches in the past were faulty.

Please help me out. Thanks, Bowie101

reddazz 11-23-2005 10:33 AM

You use groupadd, to create a new group and "usermod -G group1 group2 etc" to change the groups that a user belongs to. I find it easier to just edit /etc/group and add individuals to a group than to use usermod. Use chmod for setting permissions on files and directories.

bowie101 11-23-2005 12:42 PM

thanks alot!


All times are GMT -5. The time now is 09:36 AM.