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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-26-2012, 03:49 AM
|
#1
|
Member
Registered: Apr 2005
Posts: 104
Rep:
|
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!
|
|
|
04-26-2012, 03:53 AM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally Posted by proNick
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
Hello,
How can I change group properties?
|
Che?
Quote:
Originally Posted by proNick
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
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
|
|
|
04-26-2012, 12:40 PM
|
#3
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,185
|
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.
|
|
|
04-26-2012, 01:06 PM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by proNick
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 01:10 PM.
|
|
|
04-26-2012, 01:22 PM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by DavidMcCann
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. .
|
|
|
All times are GMT -5. The time now is 06:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|