Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [group]

All about Unix groups and access control.

0
votes
0answers
18 views

How to empty the list of supplementary group IDs for a process?

When I create a child process, it inherits the supplementary gids of the parent. If the parent is a root, then the child has (0) as supplementary gid. This behavior is not desired. Is it possible to ...
0
votes
2answers
44 views

Unable to access group files even though user is part of the group

I am trying to access a directory test as user ayush. This directory is owned by user ayush and has group git The directory has permissions 0070, and group git, and ayush is a member of that group. ...
1
vote
1answer
41 views

Directory owned by a group that doesn't exist? [duplicate]

I'm witnessing a a directory which has for group owner "1002" ... However I do not have any group with such ID (verified with getent group | grep 1002 ). Even history | grep groupadd gave nothing. ...
1
vote
1answer
30 views

Mass Assign Users to Groups

I have 2 text files, users.txt with a list of 1000 users and groups.txt with a list of 50 groups. I want to run a command that adds 30 users to each group (ex: users 1-30 to group 1, users 31-60 to ...
0
votes
0answers
28 views

if the member of any group has only the execute permission will the be able to enter into the directory belongs to that group?

# mkdir -p /test/music # created this dir as a root # chmod g=x,o= /test # rwx--x--- # gpasswd -a x1 root # adding x1 user into the root group # su - x1 # login as x1 $ cd /test ...
2
votes
1answer
53 views

ID inheritance – Which IDs?

I'm learning UNIX file permissions / ID inheritance and would like to clarify something: I have this list of permissions, users, groups and files: -rwxr-xr-x userA A foo -rw-rwsr-x userB B bar ...
0
votes
1answer
55 views

Why does the primary group of my user show up in /etc/group?

I'm following a course about Linux and it states the following: "The primary group of a user is not mentioned in the /etc/group file." However, my primary user "timgeldof" actually does show up in ...
0
votes
0answers
31 views

Adding user to a group with correct permissions and access to directory still denied [duplicate]

I have a directory 'ad' with permissions: drwxrwx---, for devpro devpro I added devst to devpro group with: usermod -a -G devpro devst If I use id command for devst I get: devst If I use ...
0
votes
2answers
62 views

Folder group ownership permissions and problems

I have created a folder called /home/projects, to do this I had to use sudo mkdir /home/projects because it's inside the home folder. Initially the folder had these permissions: drwxr-xr-x 4 root ...
4
votes
1answer
136 views

Inconsistency between “getent group” and “getent group <groupname>” – why?

Question How is the following possible? $ getent group | grep docker $ getent group docker docker:x:600: Note that the first call doesn’t return anything while the second one does. grpck doesn’t ...
-1
votes
1answer
73 views

How to organize /home/ such that users don't see each other's content?

Up to know, I used a sandbox server for myself only, and websites were in subdirectories of /home/www/: drwxr-xr-x 5 root root 4096 Nov 30 14:45 www |--- drwxr-xr-x 3 www-data www-data 4096 Oct 14 ...
-1
votes
1answer
44 views

How to add existing user to an existing group in centos 7?

I'm trying to add an existing user called Jim, to the current group called hoho, that I've created. I've looked up the command, and this is all I got. useradd -g hoho Jim Then when I checked to ...
3
votes
1answer
193 views

Who are the users in the default groups [closed]

I am learning command line currently in ubuntu Linux and am using a tutorial video that has shown me how to add and delete groups. When I view the groups in /etc/group file after using the command cat ...
0
votes
1answer
41 views

Freshly installed Wireshark with enabled non-root listen users is not able to listen

I have Linux Mint 19 64-bit Cinnamon. I have just installed wireshark-gtk with: sudo apt-get install wireshark-gtk while installing I was asked this: Answering Yes as you can see, as I am the sole ...
0
votes
1answer
38 views

Silent failure adding user to group

As part of an environment setup script we have the following snippet which installs docker: if [ ! "$(docker -v)" ]; then infoMessage "Setting up Docker..." echo "Updating system packages.." ...
0
votes
1answer
713 views

RHEL 7.5 - How to remove user from a group?

usermod does not have an option to remove user from a group Usage: usermod [options] LOGIN Options: -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR new ...
1
vote
0answers
35 views

Can a user reside in one group, but write from another? [duplicate]

We have group Apache and, let's say, "District" group. All our team members are part of "District" group. Apache user is part of "Apache" group, and does a lot of work on our server, creating and ...
0
votes
1answer
31 views

What is the difference between calling “id -G” and “id -G -r”?

I know the -r flag should print the real group the user is in. But since -G already prints all his groups, does this make a difference? What does id -gr xxxsome_user really print out? How can a user ...
0
votes
1answer
19 views

KDE SC 5.10.5 on Kubuntu 17.10 / After logging in, user has only primary group assigned

Some time ago (can't tell exactly when, but it's been one week at least), users logging into KDE on this system stopped being assigned membership to their supplementary groups. For example, user "...
1
vote
0answers
32 views

Unable to add user to a new group as default as the user has its name same as old group

I am using Red Hat Linux 6. Have a username 'nrajora' and a group name 'nrajora' as default in the system I created a new group 'super-group' which has all the required privileges. Now I am trying ...
0
votes
0answers
55 views

Add user to systemd-journal group with no root access [duplicate]

I disabled root login access to secure my server with the following tutorial: https://medium.com/wavesgo-educationfund/how-to-configure-your-server-for-a-secure-waves-node-58558bec02f1 That works ...
0
votes
0answers
46 views

How to retrieve information of a user?

After running below commands, [root@u87 ~]# getent group somegroup somegroup:*:2441:someuser [root@u87 ~]# [root@u87 ~]# [root@u87 ~]# cat /etc/group | grep somegroup [root@u87 ~]# [root@u87 ~]# cat ...
0
votes
1answer
22 views

Unable to add entry in /etc/group

Ran below commands to create a group [root@u87 ~] # groupadd -g 2441 somegroup groupadd: group 'somegroup' already exists [root@u87 ~]# cat /etc/group | grep somegroup [root@u87 ~]# [root@u87 ~]# [...
1
vote
1answer
37 views

Where are supplemental groups coming from in /proc/pid/status, are they always inherited from a shell?

In /proc/pid/status we can see all the supplemental groups for the pid (My understanding is this is assuming it was forked from an interactive shell or the process did getgroups(2)) I want to know ...
0
votes
2answers
49 views

What is the case of “a process running with extra privileges process can draw upon”?

From https://unix.stackexchange.com/a/18290/674 The kernel view Conceptually, there are three sets of groups that a process is a member of. Each set is a subset of the following one. ...
1
vote
2answers
610 views

In `/etc/passwd`, can different usernames for the same user ID have different group IDs?

From The Linux Programming Interface, about /etc/passwd: It is possible (but unusual) to have more than one record in the password file with the same user ID, thus permitting multiple login ...
11
votes
3answers
961 views

Can a superuser process change the real user ID and group ID of a process, not matching those in the password file?

From APUE The real user ID and real group ID of a process identify who we really are. These two fields are taken from our entry in the password file when we log in. Normally, these values don’t ...
2
votes
1answer
32 views

Can't access folder with group permissions

It seems that I can't access a folder on which I put 777 group permissions, even though I am a member of the folder's group. Error detail : 10:57 ~ $ ls -l d---rwx--- 2 laurent www-data 4096 août ...
1
vote
1answer
255 views

Equivalent to NFS all_squash

I have an unusual requirement where I need to mount the same filesystem on a client multiple times, but each mount offering a different view of the underlying data, based on the group permissions of ...
0
votes
1answer
38 views

Why is there a different result when running as user1 and su - user1 -c “command”?

When running as user1 in the same directory (/home/user1/WWW) [user1@server1 WWW (master)]# touch c Creates the file c inside the directory. [root@server1 WWW (master) ACCEPTATIE SERVER]# su - ...
1
vote
1answer
307 views

What must be added to nsswitch.conf to show AD users and groups?

This is a follow-up to this question. I have a CentOS 7 machine which has joined a domain FOOBAR. It is possible to successfully get info about users stored in the AD via id user@FOOBAR.GLOBAL ...
1
vote
0answers
64 views

sudo does not recognize new group

Why won't sudo recognize my group, in a fresh login after using groupadd? Our DigitalOcean CentOS comes with a borked sudo implementation. It's the following script, note well line #2: $ nl $(which ...
0
votes
1answer
171 views

Permissions Error

I'm running Ubuntu 16.04.4 LTS and facing a problem. All of a sudden I'm unable to edit files that I could before, I cannot run programs due to permission errors. I'm always logged in as a user ejaz ...
4
votes
2answers
769 views

Missing groups at each startup

Logging out and logging back in do not fix this problem. Rebooting does not fix this problem. NOTE: Please do not mark this question as a duplicate, I'm aware of this question: I added a user to a ...
1
vote
1answer
532 views

Groups not registering in X

I'm using Ubuntu 16.04. When I use LightDM to login and start X, I see that my secondary groups aren't loaded (running "groups" reports that I belong only to my primary group). If I log in via ...
1
vote
2answers
130 views

What is the application of file ownership (chown) in linux?

I have faced a problem in changing the permissions for a specific group of users in my system. suppose I have four users u1,v1 and u2,v2 and two groups g1 and g2. u1,v1 are in g1 group and u2,v2 are ...
0
votes
2answers
837 views

How to add user to a group using bash scripting? [closed]

I am having hard time adding a user to a group in script. For example, I have a script that asks user to answer several questions, and if answers are correct, that user should be added to a certain ...
0
votes
2answers
39 views

User can delete file with read permission only

I created user small, added him to group kek and allowed that group to only read files in user home directory. Then I chowned all files to root:kek. However, small still can delete files in his home ...
1
vote
1answer
59 views

Why give mysql group the same GID as sudo group?

I'm following installation/setup instructions in the MySQL Secure Deployment Guide, which say to create the mysql group with: groupadd -g 27 -o -r mysql The -o permits adding a group with a non-...
0
votes
1answer
186 views

Need to split a file into multiple files, but ensure the grouped data remains in same file [duplicate]

This question is not a duplicate, because here we need also to ensure, that group of common values/rows remain in the same split file (and is not scattered across multiple split files). All, I tried ...
0
votes
1answer
27 views

Providing read only access to users from another group to a folder belonging to the home directory of a user from different group

So I have got two groups fruits and vegetables. mango is a user belonging to fruits group. There's a folder named insecticide in the home directory of mango. I want to provide read-only access to the ...
3
votes
4answers
3k views

Determine which group(s) a running process is in?

I try to determine which group(s) a running child process has inherited. I want to find all groups the process is in for his uid. Is there a way to determine this via /proc filesystem?
1
vote
2answers
84 views

What does a group with no group id means?

As part of my assignment I was asked to find a group called + and to write in brief what I think of it. This group in /etc/group is shown as +:x:: which means it has no Gid and No users. But what ...
1
vote
1answer
80 views

Why adding a user to the sudo group before we install sudo package doesn't work?

I just did this "mistake" and it took me a while to figure it out! Can anybody explain me what happens behind the scenes of this "bug"? Thanks in advance :)
0
votes
1answer
109 views

What is the “group vector” of a user?

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 ...
0
votes
0answers
38 views

Why does usermod default to overwriting secondary groups?

As anyone who has used usermod to add a user to a group knows, invariably a mistake will be made (probably once in a career and not again) in which -a is forgotten and the secondary groups are ...
0
votes
0answers
19 views

Change permissions for a group that is not the owner of the file

I am part of a group called friends and we have a directory titled secrets. I have a rwx permissions, friends have rx permissions and others have w permissions. I want to explicitly ban members of a ...
1
vote
2answers
57 views

Setup Group Permissions but no Write Access

I've been trying to set up a shared folder to store some files for a group of people, for example /home/project. At the moment, I've done the following: Created a group, let's call it "members", and ...
1
vote
1answer
218 views

Zsh shell: compaudit:148: unknown group

Whenever I open the zsh shell, it outputs these 3 lines: compaudit:148: unknown group compaudit:148: unknown group compaudit:148: unknown group When I run the compaudit command, it outputs this line:...
1
vote
0answers
822 views

Member of sudo group, getting “is not in the sudoers file.”

I am running CentOS 7 web server in a VM on our network, and it all looks like I am in the sudoer list but when I try anything with I get the following error: $ sudo ls [sudo] password for dragonbite:...