LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   newgrp command versus roles (https://www.linuxquestions.org/questions/linux-newbie-8/newgrp-command-versus-roles-4175482420/)

dksellou 10-27-2013 10:40 PM

newgrp command versus roles
 
I don'tknow if it is the correct category to post this post, but what is the difference between newgrp command and role? Does it differ or not?
For example, in a System V-based UNIX system, in which a process can have exactly one group identity, and in order to change groups users must execute the newgrp command.
Do these groups differ from roles?
does my question make sense?

evo2 10-27-2013 11:53 PM

Hi,

I'm not familiar with "roles": in what context and on what system are you using "roles"?

Evo2.

dksellou 10-28-2013 09:52 AM

It is a very general question...

jpollard 10-28-2013 03:32 PM

newgrp has nothing to do with security roles...

It sets the processes group id - which in most systems is irrelevent. All groups are available.

Groups are defined as collections of users, group access is granted to files based on the file group.

Normally, (see getgroups/setgroups) all groups are in the process access list. A process may access a file if the file belongs to the user (the owner of the file), or if the file group identifier match on of the groups in the users group list. That access is still limited by the corresponding permissions flags on the file.

Groups HAVE been overloaded with some "role" definitions - but these are only overloaded, and not a good use of groups. The use of a group as a role was supported by the set group id flag, AND by utilities like sudo - where a group name also matches a security control. It assumes that the group name is NOT used for files... but once a user is in the group, that user can then apply the group to a file, even if it isn't what the group was for.

This overloaded use worked where systems did not support true "roles". The overloaded use was just a workaround.

Linux has true role definition - supported by SELinux models, and can be applied to files, users, and or processes.

evo2 10-28-2013 03:44 PM

Quote:

Originally Posted by dksellou (Post 5053721)
It is a very general question...

It's a very vague set of questions using an common word in what seems to be a specific way while leaving that term undefined.

Evo2.


All times are GMT -5. The time now is 12:27 AM.