Setting up a group and Adding users to the group

The access control offered by making a file owned by a particular user is useful, but crude. To get finer control over who has access to what, you will want to set up groups of users. Groups allow you to grant access to parts of the system to several people at once.

It’s quite easy to set up a group and then add users to that group.

Here’s how:

1. Decide what you want to call your group, and then use the groupadd command as root to add it. (You can optionally specify the numerical ID to assign to the group, but usually allowing the system to choose it is fine.) If your son is grounded from the Internet for two weeks, you might create a group of users who are allowed to use it:

# groupadd internet

2. After you press Enter, the group is added to /etc/group. The new line looks something like this:

internet:x:1O1:

The users that belong to the group appear in the fourth field, separated by commas. Currently no users are in the group.

3. To add users to the group, it is often easiest to load /etc/group into a text editor and modify the file yourself. (usermod is a utility that will allow you to change the groups a user belongs to, but you have to run it once for each user you are adding, and you must specify all groups a user belongs to.) Regardless of how you do it, the line might look like this after adding those who are allowed to use the Internet:

internet : x : 101 :mom, dad

4. Now that the group exists, you will want to apply permissions somewhere, so that the group members have special privileges. For example, the following two commands make a modem (/dev/ttySO) readable and writable to root and those users in the Internet group; no one else can use it:

# chown root:internet /dev/ttySO

# chmod 660 /dev/ttySO

You can create many groups, and add a user to any number of them.

Furnace Prices Winnipeg

Furnasman One Hour CBC

CBC News: Consumer Life-Concerns raised about furnace company

http://www.adgerlinux.com

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Furnasman One Hourr

Furnasman One Hour

Furnasman One Hour

Furnasman One Hour

Blog Traffic Exchange Related Websites
  • blog traffic exchange3 Hour Diet Review Pros - Users felt that this diet was simple for them to understand. Users felt that this diet offered quick results. Users felt like the food in this diet was tasty. Users felt that this diet fit in well with their busy schedules. Cons - Users felt that this diet......
  • blog traffic exchangeGroups, Groups, Groups... Exploring Groups on Prosper Disclaimer: I am not a member of any group, nor do I help or detract from any group... The basic idea is that a lender starts a group and becomes a group leader.  That group leader maintains to group and optionally takes a some percentage on top of the lender......
  • Tech Review of the iPhone 4Tech Review of the iPhone 4 [/caption] By Jacqui Cheng The iPhone 4 is Apple's "biggest leap since the original iPhone," at least according to Steven P. Jobs speaking at the WWDC 2010 keynote. Indeed, in the three years since Apple first introduced the iPhone, the device has come quite far. At the same time, the......
  • blog traffic exchangeSamsung J700 Chrome- A complete all-rounder mobile phone Models from Samsung is recognized worldwide for its smart looks, nice features and better functionality. The Samsung J700 Chrome looks beautiful and comes with a number of sophisticated features. In this scenario, the desire of users of these phones, functionality is communication, business use, practice daily and will include entertainment......
  • agifTop 10 Tools for Computer Animation [/caption]With the advent of computers, animation businesses have grown many folds and this has created new career for many. Today computer animation is not only limited to studio’s where a group of artists work for days to create one animated movie. It has reached to homes of enthusiastic learners who......

Tags: , , , , , , , , , , , , , , , , , , ,


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply