Questions tagged [group]
All about Unix groups and access control.
623
questions
1
vote
0
answers
39
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
52
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
21
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 ...
1
vote
0
answers
13
views
Group owner cannot write to file despite group permissions [duplicate]
I'm working on Ubuntu 20.04.
I have a system user/group systembob and a system user alice.
alice is a member of the systembob group, and has been for quite some time:
$ getent group systembob
...
0
votes
0
answers
9
views
How to reintegrate my users from a backup to a new system fresh installed?
I have had to reinstall my system - it is a Debian but my question addresses any distribution. I have disconnected the hard drive where my /homeis settled to avoid any risk when reinstalling the ...
0
votes
1
answer
29
views
is the default group "users" specific?
The group "users" comes with every Linux distribution. Does it have a specific role? Or default privileges attached to?
0
votes
0
answers
61
views
How to remove residual user and group fwupd-refresh after purging fwupd from Linux Mint 21.3?
I have removed fwupd from my system by running:
sudo apt-get purge 'fwupd*'
I am unsure why, but there seem to be some residual user & group named fwupd-refresh.
$ id fwupd-refresh
uid=128(fwupd-...
0
votes
0
answers
20
views
Mount USB stick and make it available for all users of specific group [duplicate]
I created a directory /mnt/pendrive and made the directory available to the group pendrivegrp:
$ ls -lh
drwxrwxr-x 2 root pendrivegrp 4.0K Apr 5 16:43 pendrive
All the users from pendrivegrp can ...
9
votes
1
answer
504
views
How to cancel the admin permission of a group?
I set a group called music, using the command groupadd -g 500 music.
Then I add alice to the music group, and set alice to be the admin of the music group, using these two commands gpasswd -a alice ...
0
votes
0
answers
53
views
Understanding group permissions - can't cd into a folder owner by group that I am member of
Can someone please explain to me why I am unable to cd into the folder 2024 in this screenshot (the OS is truenas scale):
the folder I am in has a folder called 2024 that is owned by another user - ...
0
votes
1
answer
1k
views
VirtualBox 7.0 Can't enumerate USB devices / No devices available
Upon the launch of VirtualBox (exact version 7.0.10-158379~Ubuntu~jammy) on my Linux Mint 21.3, I am greeted with a message in the upper-right corner:
Can't enumerate USB devices
and if I try to ...
0
votes
0
answers
46
views
I need help in getting auxiliary groups mapped on Linux NFS client from a Windows NFSv4.1 server
We have an IdM with AD trust in a mixed network environment. Our RHEL clients are joined to the IdM realm and Windows desktop/workstations are joined to the AD domain. IdM and AD realm/domain are ...
0
votes
0
answers
18
views
Difference between permissions 700 and 070 [duplicate]
in debain if a owner is not given access to a directory but the group which includes the owner has access to the directory will the owner still be able to access the directory?
A scenario:
If a user ...
0
votes
1
answer
111
views
User root while Group is root but Changing Ownership from /dev/ Ultimately
Okay...so I have used chown and chmod as directed by many tutorials to access some /dev/ files for peripherals.
The chown and chmod does not make it past a reboot. This is okay. The issue I am seeing ...
0
votes
2
answers
40
views
File Permission of a User with No Additional Groups
Using a Rocky Linux server, I created a user using the following command,
sudo adduser foobar
and user foobar is now a member of group foobar. We can confirm with the following.
foobar$ id
uid=1111(...
2
votes
1
answer
197
views
Problems with primary group (gid), secondary group and permissions
I hope my question is not repeated, as I have been searching the Internet for several days with different keywords and I can't find the solution to my problem with the permissions.
I have a shared ...
0
votes
1
answer
46
views
How can I allow a single member of group as sudoer
I am looking for a solution to a use case where a group is granted sudoer privileges. However, only one specific user or member within that group should have sudoer permission privileges, while the ...
0
votes
1
answer
101
views
I don't acquire supplemental groups at login
I have ssh access to a fresh installation of Ubuntu 22.04 on a cloud VM. My password entry is
fish:x:1001:100::/home/fish:/bin/bash
and /etc/group contains
users:x:100:
sudo:x:27:gsluser,fish
When ...
2
votes
4
answers
17k
views
It says always I'm not in "sudoers" file!
I migrated from Ubuntu-20 to Debian-12, and I can't excute the command sudo with my username my_name within a fresh installed system.
So, I added my_name into "sudo" group(usermod -aG sudo ...
-1
votes
1
answer
1k
views
default user privileges, root and sudo/admin/wheel groups on ubuntu18.04
I installed Ubuntu 18.04 and noticed a few things:
My default user (the one configures right after installation) belongs to sudo group with the following permissions: ALL=(ALL:ALL) ALL
My root user ...
0
votes
1
answer
239
views
Restrict write access of executable
I'm creating a file system manager that has extensions for automatic creation of projects, ...
The filesystem executable should only be able to edit or remove files in /home/USER/00_Files
I created a ...
2
votes
1
answer
250
views
Permission denied in rootless docker with non-primary group access
I'm trying to bind mount a directory that is owned by root with 770 permissions. My user is in the group with permission, so I can access it (read, write, & execute) on the host, but the ownership ...
7
votes
2
answers
2k
views
What system calls create users and groups?
Whenever I search for how to create groups, examples always point to chapter 8 (i.e. shell) commands. When I look through lists of common sys calls (i.e. the ones listed in the Wikipedia page), I see ...
1
vote
0
answers
42
views
Implementation of groups in the linux kernel
Question:
Are there any further sources to catch up on the implementation of groups in the linux kernel.
The man page about credentials helped me out so far, but I like to delve deeper (though still ...
1
vote
1
answer
1k
views
Allow user in group to access shared folder from another user
There are two accounts user1 and user2. I wish to share and give rwx access to my user1 /home/user1/Documents/ folder with user2. To do this, I have made a new group called sharedDocs. These are the ...
0
votes
1
answer
804
views
How do I switch users with their groups groups in Python?
How do I switch to an admin-user account from this python script named root_and_user.py that was run with doas or sudo?
#!/usr/bin/env python3
from os import geteuid, seteuid
from subprocess import ...
0
votes
2
answers
972
views
member of www-data but it doesn't show in groups
When I look at the groups that user 'wim' is a member of, www-data group does not show.
When I look at the members of www-data, user wim is listed.
$ groups
wim adm cdrom sudo dip plugdev lpadmin ...
0
votes
4
answers
183
views
output a column group by another columns in shell
Thanks in advance!
I have a file with 3 columns like this:
serv1 red group1
serv1 black group1
serv1 orange group1
serv1 red group2
serv1 orange group2
serv1 red group3
...
1
vote
1
answer
300
views
Does Linux have well-known groups and users, other than root? [duplicate]
Windows have lots of well-known groups and users that all installations have by default. For example, the Administrator user is a member of the Administrators group, or any user is a member of the ...
3
votes
1
answer
846
views
How do I enable unprivileged_userns_clone selectively for one executable or user?
How do I enable CLONE_NEWUSER in a more fine-grained fashion compared to just kernel.unprivileged_userns_clone?
I want to keep kernel API attack surface manageable by keeping new and complicated ...
1
vote
1
answer
3k
views
Does chown command allow to set group different from user group?
It may be a stupid question, but I don't understand a detail about the command chown. I haven't found any explanation for this detail yet, maybe because it's so obvious to everyone.
When you change a ...
1
vote
0
answers
44
views
Is there a group reference in grep's Regex? [duplicate]
s="/usr/share/fonts/X11/100dpi/ncenI12-ISO8859-1.pcf.gz: New Century Schoolbook:style=Itali"
The best way to extract three parts seperated by ":" is to use awk:
echo $s | awk -F: '...
0
votes
1
answer
223
views
change group ownership specifying from to for entire file system
I have 3 specific user accounts (less than 10 anyway), for all files & folders under a specific /data or /home directory, I want to change just the group ownership of all occurring files/folders ...
0
votes
1
answer
113
views
How do I have two group owners
I have a file where I want there to be not one but two groups who can have extra privileges to access it. But when I chown or chgrp it to a group it always erases the previous group. How do I add a ...
0
votes
2
answers
262
views
Why is `id` giving different answers for basically the same question
I'm on Ubuntu.
$ whoami
eugen
$ id
uid=1000(eugen) gid=1000(eugen) groups=1000(eugen),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),134(lxd),135(sambashare)
$ id eugen
uid=1000(eugen) gid=...
3
votes
0
answers
82
views
How to grant group access to a singularity instance
I constructed a singularity/apptainer sif container and I can now start an instance of this container. Is there a way to grant other users (in a group) the right to run the instance ?
In short, How ...
1
vote
1
answer
503
views
Ext4 "unused inodes" "free inodes" diffrence?
When I use the dumpe2fs command to look at the Block Group of the ext4 filesystem, I see "free inodes" and "unused inodes".
I want to know the difference between them ?
Why do they ...
4
votes
1
answer
565
views
Put a specific file in every Unix user's home directory when they're created and added to a particular group
How can I set up my Solaris system so that every time a user is created and assigned to a specific group, a specific file is placed in that user's home directory?
1
vote
1
answer
170
views
Where to find purpose of each system default Groups and Users in Linux
when I cat /etc/group and cat /etc/passwd I get a list in which I find many I don't know. I know only group sudo group. But there is are many which I don't knows such as sys, adm .... I like to learn ...
1
vote
2
answers
2k
views
adding a user to an existing group in linux
I am wondering if there is a difference between using usermod or groupmod to add a user to another existing group.
Example: we have a supplementary group named artists and want to add romeo to this ...
1
vote
1
answer
2k
views
How to get list of users with a given group as primary group
With
getent group xyz
I get a list of users who are members of xyz with xyz either as a primary group or as secondary group.
How do I get a list of just those users who have xyz as their primary ...
1
vote
1
answer
2k
views
Group not listed in groups command
On Ubuntu 22.04, I've installed docker, added myself to the docker group with sudo usermod -a -G docker user, and logged out/in.
However, I still get "permission denied" errors when running ...
1
vote
0
answers
246
views
convention of group id for audit
in /etc/audit/auditd.conf there is log_group = root. I have been asks to change that to log_group = audit to facilitate logging.
In RHEL 7.9 there is no audit group defined in /etc/group; someone ...
1
vote
1
answer
430
views
What are the differences between lgroupadd and groupadd?
lgroupadd is provided by libuser.
groupadd is provided by shadow.
Both create user groups.
I couldn't find the difference between the two on google.
0
votes
1
answer
102
views
How to set up up group specific folders in linux
I'm trying to create a segregated workspace for multiple groups, each group member should only be able to read, write and view their associated shared folder.
I've created 2 user groups groupATeam ...
0
votes
1
answer
183
views
How to limit messages from the wall command to a specific group?
The description for the wall command states that it sends a message to all logged in users. However, the man page describes a flag, -g --group, which allows the sender to limit messages to a specified ...
2
votes
0
answers
620
views
group symlink access denied
I have a symlinked directory that I cannot access. The other user has created a folder in their home directory and created a symlink to it in a place I can access, but I get 'permission denied'. I ...
0
votes
1
answer
195
views
When a user group is created, are there any group names that should be avoided?
There are many group names in /etc/group on a freshly installed Linux distribution. When creating a new group, are there any group names that should be avoided, outside of ones that already exist in /...
2
votes
2
answers
486
views
Is there a similar command like "lid" on Ubuntu?
On RHEL, there is a command lid, which lists group users, no matter primary group or secondary group.
[root@192 ~]# id user1
uid=1000(user1) gid=1000(user1) groups=1000(user1),1001(g1)
[root@192 ~]# ...
2
votes
0
answers
875
views
Add user from LDAP db to local linux group
My user to login to RHEL server is: e5614
I do not see that user in /etc/passwd.
But I do see it with getent command
getent passwd | grep e5614
e5614:x:613869764:10104:JohnJohn:/home/e5614:/bin/bash
...