What is the âgroup vectorâ of a user?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
From man sudo
-P, --preserve-groups
Preserve the invoking user's group vector unaltered. By default,
the sudoers policy will initialize the group vector to the list of
groups the target user is a member of. The real and effective group
IDs, however, are still set to match the target user.
What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.
sudo group
add a comment |Â
up vote
0
down vote
favorite
From man sudo
-P, --preserve-groups
Preserve the invoking user's group vector unaltered. By default,
the sudoers policy will initialize the group vector to the list of
groups the target user is a member of. The real and effective group
IDs, however, are still set to match the target user.
What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.
sudo group
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
From man sudo
-P, --preserve-groups
Preserve the invoking user's group vector unaltered. By default,
the sudoers policy will initialize the group vector to the list of
groups the target user is a member of. The real and effective group
IDs, however, are still set to match the target user.
What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.
sudo group
From man sudo
-P, --preserve-groups
Preserve the invoking user's group vector unaltered. By default,
the sudoers policy will initialize the group vector to the list of
groups the target user is a member of. The real and effective group
IDs, however, are still set to match the target user.
What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.
sudo group
edited Apr 27 at 10:40
Jeff Schaller
31.1k846105
31.1k846105
asked Apr 27 at 2:23
Tim
22.6k63224401
22.6k63224401
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Group vector is a term that refers to the specific set of groups to which a user has membership.
Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.
Thanks. What does "vector" mean?
â Tim
Apr 27 at 2:50
vector is a fancy word for collection or list.
â Miguel Mota
Apr 27 at 2:52
Is there really a collection or list such as a bit array somewhere for the groups of a user?
â Tim
Apr 27 at 2:54
/etc/group
contains all group ids (gids) and/etc/passwd
contains the user gids
â Miguel Mota
Apr 27 at 3:04
1
passwd
contains the primary groupid for each user (which was the only one in olden days);group
contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
â dave_thompson_085
Apr 27 at 6:06
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Group vector is a term that refers to the specific set of groups to which a user has membership.
Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.
Thanks. What does "vector" mean?
â Tim
Apr 27 at 2:50
vector is a fancy word for collection or list.
â Miguel Mota
Apr 27 at 2:52
Is there really a collection or list such as a bit array somewhere for the groups of a user?
â Tim
Apr 27 at 2:54
/etc/group
contains all group ids (gids) and/etc/passwd
contains the user gids
â Miguel Mota
Apr 27 at 3:04
1
passwd
contains the primary groupid for each user (which was the only one in olden days);group
contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
â dave_thompson_085
Apr 27 at 6:06
 |Â
show 2 more comments
up vote
2
down vote
accepted
Group vector is a term that refers to the specific set of groups to which a user has membership.
Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.
Thanks. What does "vector" mean?
â Tim
Apr 27 at 2:50
vector is a fancy word for collection or list.
â Miguel Mota
Apr 27 at 2:52
Is there really a collection or list such as a bit array somewhere for the groups of a user?
â Tim
Apr 27 at 2:54
/etc/group
contains all group ids (gids) and/etc/passwd
contains the user gids
â Miguel Mota
Apr 27 at 3:04
1
passwd
contains the primary groupid for each user (which was the only one in olden days);group
contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
â dave_thompson_085
Apr 27 at 6:06
 |Â
show 2 more comments
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Group vector is a term that refers to the specific set of groups to which a user has membership.
Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.
Group vector is a term that refers to the specific set of groups to which a user has membership.
Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.
answered Apr 27 at 2:42
Miguel Mota
1363
1363
Thanks. What does "vector" mean?
â Tim
Apr 27 at 2:50
vector is a fancy word for collection or list.
â Miguel Mota
Apr 27 at 2:52
Is there really a collection or list such as a bit array somewhere for the groups of a user?
â Tim
Apr 27 at 2:54
/etc/group
contains all group ids (gids) and/etc/passwd
contains the user gids
â Miguel Mota
Apr 27 at 3:04
1
passwd
contains the primary groupid for each user (which was the only one in olden days);group
contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
â dave_thompson_085
Apr 27 at 6:06
 |Â
show 2 more comments
Thanks. What does "vector" mean?
â Tim
Apr 27 at 2:50
vector is a fancy word for collection or list.
â Miguel Mota
Apr 27 at 2:52
Is there really a collection or list such as a bit array somewhere for the groups of a user?
â Tim
Apr 27 at 2:54
/etc/group
contains all group ids (gids) and/etc/passwd
contains the user gids
â Miguel Mota
Apr 27 at 3:04
1
passwd
contains the primary groupid for each user (which was the only one in olden days);group
contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
â dave_thompson_085
Apr 27 at 6:06
Thanks. What does "vector" mean?
â Tim
Apr 27 at 2:50
Thanks. What does "vector" mean?
â Tim
Apr 27 at 2:50
vector is a fancy word for collection or list.
â Miguel Mota
Apr 27 at 2:52
vector is a fancy word for collection or list.
â Miguel Mota
Apr 27 at 2:52
Is there really a collection or list such as a bit array somewhere for the groups of a user?
â Tim
Apr 27 at 2:54
Is there really a collection or list such as a bit array somewhere for the groups of a user?
â Tim
Apr 27 at 2:54
/etc/group
contains all group ids (gids) and /etc/passwd
contains the user gidsâ Miguel Mota
Apr 27 at 3:04
/etc/group
contains all group ids (gids) and /etc/passwd
contains the user gidsâ Miguel Mota
Apr 27 at 3:04
1
1
passwd
contains the primary groupid for each user (which was the only one in olden days); group
contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.â dave_thompson_085
Apr 27 at 6:06
passwd
contains the primary groupid for each user (which was the only one in olden days); group
contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.â dave_thompson_085
Apr 27 at 6:06
 |Â
show 2 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440315%2fwhat-is-the-group-vector-of-a-user%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password