Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-25-2002, 07:56 PM   #1
Registered: Mar 2002
Distribution: Ubuntu 6.10
Posts: 165

Rep: Reputation: 30
Creating A Group

How do I go about creating a group with administrative privliges so I don't have to use root so much. Is this a common thing people want to do, or do people say "its insecure to have a user have as much rights as root" hehe

Old 04-25-2002, 09:00 PM   #2
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15

man groupadd

create your group and then give users "membership" in the goup.

This doesn't do shit for security, however. What it allows you to do is make filesystem permissions easier to manage.

For example: there are 5 people in your company: bob, mary, sue, tom and mark. bob, tom and sue are developers and they would like to have a directory to store all of their development data. mary and sue are also in charge of the books. They would like to be able to have a place to share accounting data and not worry about anyone else seeing what goes on in the books.

so you create two groups, coders and books. Then you give bob, tom and sue membership in group "coders" and sue and mary membership in "books".

Now create a /development and an /accounting directory. Change the ownership to bob.coders and mary.books, respectively. Change the permissions to 770 (rwxrwx---).

Now anyone who is part of the coders group can access the /development directory, and anyone part of the books group can get into the /accounting directory. If you're not part of one of these groups (or not root), you can't even list files in the directory.

This is a *very* simple example. You may want to visit a library and see if you can't locate a few introductory unix books or google around -- there is a lot of power in groups that any post won't be able to give all the info on.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a new group for CDRW xucaen Debian 2 09-26-2005 12:24 PM
NAGIOS/Suse.9 : Creating User/group siobhan_2004 Linux - Newbie 1 08-04-2004 04:49 PM
Creating a group hierarchy? statuszero Linux - Security 5 07-16-2004 04:18 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 05:01 PM
creating file /aquota.user and / deepika Linux - Newbie 1 10-09-2003 04:15 AM

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration