Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [group]

All about Unix groups and access control.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 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 ...
lalebarde's user avatar
  • 255
0 votes
1 answer
26 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?
lalebarde's user avatar
  • 255
0 votes
0 answers
24 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-...
Vlastimil Burián's user avatar
0 votes
0 answers
17 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 ...
user171780's user avatar
9 votes
1 answer
503 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 ...
Nie Philip 's user avatar
0 votes
0 answers
45 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 - ...
Roaders's user avatar
  • 139
0 votes
1 answer
379 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 ...
Vlastimil Burián's user avatar
0 votes
0 answers
32 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 ...
DCHS's user avatar
  • 1
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 ...
Curious Developer's user avatar
0 votes
1 answer
62 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 ...
For Ward's user avatar
0 votes
2 answers
36 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(...
Sekots Reivan's user avatar
2 votes
1 answer
154 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 ...
Jokte's user avatar
  • 21
0 votes
1 answer
44 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 ...
govind Lalit's user avatar
0 votes
1 answer
79 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 ...
seismofish's user avatar
0 votes
4 answers
9k 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 ...
Leon's user avatar
  • 163
0 votes
0 answers
49 views

Additional Examination to that of RkHunter False Flags

When initially exploring with RkHunter; such was characterised with the following "Warnings" on the initial setup and scan; albeit not having found any indicators associated to known or ...
W4hn51nn's user avatar
0 votes
0 answers
157 views

best way to create a non sudo "guest" user with access only to specific applications/services/libraries in ubuntu 18.04

I installed Ubuntu 18.04 with two user accounts: admin (member of sudo group, initial installed user) guest (not member of sudo group), it's home directory mounted on a separate partition. I wish to ...
hutcruchi's user avatar
  • 339
-1 votes
1 answer
818 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 ...
hutcruchi's user avatar
  • 339
0 votes
1 answer
201 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 ...
Simon Van den Bossche's user avatar
2 votes
1 answer
195 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 ...
eveyp's user avatar
  • 21
7 votes
2 answers
1k 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 ...
aaronstacy's user avatar
1 vote
0 answers
39 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 ...
Semnodime's user avatar
  • 367
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 ...
0xheartcode's user avatar
0 votes
1 answer
707 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 ...
John Smith's user avatar
0 votes
2 answers
877 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 ...
anatak's user avatar
  • 691
0 votes
4 answers
162 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 ...
iam's user avatar
  • 3
1 vote
1 answer
250 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 ...
Damn Vegetables's user avatar
3 votes
1 answer
688 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 ...
Vi.'s user avatar
  • 5,753
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 ...
SuperFluo's user avatar
1 vote
0 answers
43 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: '...
newview's user avatar
  • 205
0 votes
1 answer
188 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 ...
ron's user avatar
  • 6,817
0 votes
1 answer
94 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 ...
ConcernedParagraph7235's user avatar
0 votes
2 answers
191 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=...
Eugen's user avatar
  • 101
3 votes
0 answers
75 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 ...
TMat's user avatar
  • 131
1 vote
1 answer
413 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 ...
Samuel's user avatar
  • 13
4 votes
1 answer
506 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?
Nestor's user avatar
  • 41
1 vote
1 answer
157 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 ...
zakadmin's user avatar
1 vote
2 answers
1k 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 ...
Dejavu Redfield's user avatar
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 ...
loris's user avatar
  • 195
1 vote
1 answer
1k 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 ...
Daniel Walker's user avatar
1 vote
0 answers
202 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 ...
ron's user avatar
  • 6,817
1 vote
1 answer
371 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.
Lee Bruce's user avatar
0 votes
1 answer
92 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 ...
Zizi96's user avatar
  • 103
0 votes
1 answer
155 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 ...
Johnny's user avatar
  • 5
2 votes
0 answers
536 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 ...
Will's user avatar
  • 131
0 votes
1 answer
180 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 /...
qq4's user avatar
  • 519
2 votes
2 answers
451 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 ~]# ...
Fajela Tajkiya's user avatar
2 votes
0 answers
801 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 ...
AndreyS's user avatar
  • 258
0 votes
2 answers
986 views

How to pick a static group id?

I am tasked with reassigning a static group id (gid) to an existing group name that exists on multiple Linux servers. E.g. the group name foo currently exists on multiple servers, but with different ...
StoneThrow's user avatar
  • 1,737
1 vote
1 answer
104 views

In what context can I see effect of sudo's "--preserve-groups" option?

Given the following users: $ whoami admin $ groups staff everyone admin groupA and $ whoami user $ groups staff everyone groupB I'm trying to understand what exactly the --preserve-groups option ...
Kentzo's user avatar
  • 179

1
2 3 4 5
13