LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2012, 02:49 AM   #1
proNick
Member
 
Registered: Apr 2005
Posts: 104

Rep: Reputation: 15
What are benefits of groups? How can I change properties of the group?


Hello,

I have some doubts regarding use of Linux groups...

What are benefits of groups? How can I change group properties?

Ie. how can I define that users in group 'users' can access to cdrom, without adding all members of group 'users' into group 'cdrom'?

Or, benefit of the groups are strictly related with access rights to files and directories?


Thank you in advance!
 
Old 04-26-2012, 02:53 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by proNick View Post
Hello,

I have some doubts regarding use of Linux groups...

What are benefits of groups?
They make it possible for groups of people to have specific
rights on e.g. a directory that others don't.


Quote:
Originally Posted by proNick View Post
Hello,
How can I change group properties?
Che?

Quote:
Originally Posted by proNick View Post
Ie. how can I define that users in group 'users' can access to cdrom, without adding all members of group 'users' into group 'cdrom'?
You can't. But in my prefered editor it's a 10 second job to tack
all "users" users onto "cdrom".


Quote:
Originally Posted by proNick View Post
Or, benefit of the groups are strictly related with access rights to files and directories?


Thank you in advance!
I fail to see how that warrants an "or". That is indeed the whole point.

user, group, other. Access rights to files and directories, done in a
very simple manner.


Cheers,
Tink
 
Old 04-26-2012, 11:40 AM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,435

Rep: Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360Reputation: 1360
For most people, groups don't really matter. It's only if you have a network or a shared computer that they come in useful. On a family-shared machine, for example, you could create a new group "parents". Then some files could be placed in that group with full access, while access for members of other groups made read-only or forbidden. This would control the children's access to the files, but allow both parents access them.
 
Old 04-26-2012, 12:06 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,454

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by proNick View Post
Ie. how can I define that users in group 'users' can access to cdrom, without adding all members of group 'users' into group 'cdrom'?
You would define a new group for this device called say "cdrom", and add only the users you want to be able to access it to that group.

Remember, files/directories/devices can only belong to one group
Users can belong to as many groups as necessary

For example, you could define groups for security levels 1-5, called "sgroup1", "sgroup2", and so on. Any file that should only be accessed by levels 3 or higher should be set to sgroup3. Then your users can be granted access to the groups as necessary. So "Jesse" might only belong to sgroup1, giving him access to any files/directories/devices that are level 1, but nothing higher. Meanwhile "Richard" might belong to sgroup1, sgroup2, sgroup3, and sgroup4, giving him access to any files/directories/devices belonging to those four groups, but not those belonging to sgroup5.

Increasing or decreasing a user's access involves only adding them to or removing them from a group. Increasing or decreasing a file/directory/device's security level involves only changing which group it belongs to.

Last edited by suicidaleggroll; 04-26-2012 at 12:10 PM.
 
Old 04-26-2012, 12:22 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
Quote:
Originally Posted by DavidMcCann View Post
For most people, groups don't really matter.
Just for clarification, this is only true because many distributions put a new created user per default in some groups that can be handy. For example, you can't shutdown/reboot the machine from GUI if you aren't in the power group, etc. .
 
  


Reply


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
can't change external HD file properties eldondehart Linux - Hardware 4 09-14-2010 01:10 PM
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 04:57 PM
invalid group id redhat linux as 5 - all groups in group file are invalid groups nlong1 Red Hat 1 02-15-2009 03:43 AM
Group of Groups ziox Linux - General 5 05-04-2007 09:28 AM
how do i change display properties lil213 Linux - Software 5 11-06-2003 10:39 PM


All times are GMT -5. The time now is 10:07 PM.

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