Questions tagged [group]
All about Unix groups and access control.
629 questions
0
votes
1
answer
24
views
Why is the audio group missing from www-data under nginx/php-fpm?
TL;DR I am trying to make aplay play a wav file. This requires the current user to be in the audio group. It works fine when I invoke it from a logged in user, even when I su -u www-data but the nginx/...
1
vote
2
answers
121
views
Ubuntu 24.04 docker container permissions to shared drives
I'm trying to create a decent user/group permission structure for my docker containers but perhaps i don't understand groups and docker access as well as i should
The actual use case is I am running ...
0
votes
1
answer
126
views
Why can't I create a user with primary GID 100?
In /etc/group there is a group users with numerical group ID 100.
When I install RHEL 7,8, or 9 it does not allow me to create the initial user with a primary group ID of 100. The GUI always snaps ...
1
vote
1
answer
514
views
Created a group with existing gid, now cannot delete it
I'm on Ubuntu 24. Originally, the system had an existing group with gid 999:
# cat /etc/group | grep 999
systemd-journal:x:999:
(I mistakenly tried to create a group with that duplicate ID: groupadd ...
2
votes
2
answers
212
views
Possible to apply sticky bit effects to a group rather than user?
I've been reading up on the "sticky bit" and it's almost what i want… but not quite.
Background
I'm managing a small JupyterHub instance with three courses and an instructor for each course. ...
0
votes
1
answer
82
views
What is the difference between "id" and "id {my_own_username}"? And how do I add users to groups?
I have a situation where one user (minknow) is creating files/directories and I want another user (mine, nano2) to have rwx (full) access to them without having to sudo change permissions every time a ...
1
vote
1
answer
38
views
Allow all users to trigger a data sync to shared directory (groups vs dummy user?)
I have an Ubuntu server with ~6-7 users. We all use some software that requires some shared files and folders to be regularly updated. Let's call that shared directory
/opt/science/online-data
...
0
votes
0
answers
104
views
Linux Mint group permissions don't work
I have users that are members of group mygroup, and I created a directory newfiles, then did the following:
$ chgrp mygroup newfiles
$ chmod 770 newfiles
I then used a different user who is a member ...
1
vote
1
answer
190
views
Why does /etc/group file not use user IDs?
Looking at the Linux group file I see that it lists group members by name and not by ID. Other files which need to identify users (e.g. shadow file) use the id.
My question is how or why did group end ...
0
votes
1
answer
65
views
Dealing with gid collisions when rebuilding a Linux system around an existing disk
I am currently rebuilding a Linux system, migrating to a new distribution (Ubuntu 24.04).
I have one disk which holds several terabytes of user data, which I want to keep. The disk holds a btrfs ...
4
votes
1
answer
518
views
What keeps modifying my /etc/group?
I am trying to add my user to several groups. I used sudo usermod -G group1,group2 to add my user to the supplemental groups I had created myself. My username shows up in /etc/group then. However ...
0
votes
0
answers
75
views
User group membership defined in /etc/group is missing after login
I use Bookworm distro on RPI and without any reason stopped working applications which require gpio membership. Real groups membership for pi I get via
pi@digie35:~ $ groups
pi adm dialout cdrom sudo ...
1
vote
0
answers
74
views
How to set permission so that `du` can be run as some user on external drive directories that are owned by multiple other users?
I am trying to use the du command as one user from inside a docker container (Telegraf) to get the disk usage of various directories on an NFS-mounted external drive. My set up looks like this:
Both ...
1
vote
1
answer
122
views
does /etc/passwd primary group mean you are in that group?
This is in RHEL-8.10 for what it's worth...
in /etc/passwd I have
ron:x:20000:100:me:/home/ron:/bin/bash
so my uid is 20000, and my gid is 100 which as defined by convention in /etc/group is the ...
0
votes
1
answer
94
views
usermod and groupmod inconsistency for removing multiple users/groups
I don't understand why usermod has a -r option that can be used in combination with -G to remove groups that the user belongs to, but groupmod doesn't have an option to remove multiple users from a ...