Questions tagged [group]
All about Unix groups and access control.
577
questions
0
votes
0
answers
7
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
...
0
votes
2
answers
28
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 ...
1
vote
1
answer
34
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 ...
0
votes
0
answers
26
views
How can I allow multiple users or groups the w+x access to a certain directory? [duplicate]
I'm aware of how to change the owner or group of a directory. However, I want to know that how I can allow multiple groups or users to have w+x access to a certain directory without chaning the actual ...
8
votes
3
answers
703
views
Is there a tool that could allow the users of our scientific computer to book it exclusively?
We have one beefy ubuntu rig for our research department that can do heavy lifting with its CPUs and GPUs. All of our researchers SSH into the machine and run (machine learning) workloads on the ...
1
vote
1
answer
20
views
Can deleted groups still function through primary groups in Linux?
With an analyzing program I built, I ran into a bug where a user had a primary group set to a since then deleted group (no longer in the /etc/group file). To scope the impact I ran some tests and run ...
-1
votes
1
answer
47
views
useradd: group '9001' does not exist
i am trying to run the command:
root@minimanode:/# sudo wget -O minima_setup.sh https://raw.githubusercontent.com/minima-global/Minima/master/scripts/minima_setup.sh && chmod +x minima_setup....
0
votes
1
answer
122
views
Grub-customizer trying to use `KDE su` - Cannot login
I would like to use Grub Customizer, but I cannot start it. After entering the administrator password,
it asks again for it:
(see update below: I guess the first image shows an interface that is not ...
1
vote
1
answer
101
views
How to enable sudo privileges for user group to apt-get install anything
I want to give a group permission to install software without needing to input a root/sudo password. I'm on Linux Mint 20.3 Cinnamon.
I have created a group called "basicsudo".
I first typed
...
5
votes
2
answers
329
views
Copying a file into a directory where I am a member of the directory group
I am attempting to copy a file into a directory where my user account is not the directory owner but belongs to a group that is the directory group owner. These are the steps I have taken:
Create a ...
0
votes
1
answer
58
views
Is there a default GID for wheel group on Debian Linices?
I know Debian doesn't use the wheel group by default, but I'm to the bottom of my todo list for securing some old operating systems that I don't want to rebuild from scratch and running the CIS ...
7
votes
1
answer
302
views
With sudo, is it possible to execute a program using a target group which the target user is not in?
Please consider a Linux system with a standard installation and configuration of sudo; that is, root can execute all commands, taking the identity of other users, and please consider the following ...
0
votes
0
answers
34
views
Why am i able to access a folder which technically shouldn't allow me in?
I found a folder whose ls -ld output goes like this
drwxr-x--- 14 root somegroup 12K Jan 13 20:10 somefolder
I dont belong to the group somegroup as found from the groups command. Rules say that i ...
0
votes
1
answer
53
views
Is there any file/directory permission effect if change uid or gid on Linux?
If group and user's settings are
group name: group1
gid: 2000
user name: user1
uid: 2000
Some directory's permission is
Directory: /application
Owner: user1
Group: group1
When change the gid and ...
0
votes
0
answers
681
views
How to fix "cannot find name for group ID xxx"
I have read Linux: id: cannot find name for group ID 999 but that does not answer my problem. The following is what I got (the username ABC and group name NAMEX are fictitious, I did adduser NAMEX, ...
0
votes
1
answer
20
views
Have a folder have many group based permissions
On a multi-user system, lets say I have the following groups:
"writers"
"readers"
"reviewers"
In the folder /Documents
writers should be able to write files, but not ...
0
votes
0
answers
16
views
Declare a local group same name of AD
OS: Debian 10.5
I have a AD with groups. I have a group "transport"
My linux hosts he is in AD.
I connect with a ssh user "maint01".
In my linux host, I create the same group: ...
0
votes
1
answer
107
views
local user on samba server machine using it's primary group even though force group is used
So I'm trying to set up a password protected samba share with permissions. And I believe I have set everything up decently correctly and the samba share works as intended.
But I'm having a slight ...
0
votes
1
answer
460
views
How to avoid getting "sudo: Account or password is expired, reset your password and try again"
I am trying to add user e.g. amit to group amit,as below.
root# groupadd -g 1500 -f amit
root# useradd amit -m -G sudo -u 1500 -g 1500 -o -p "amit"
However, ...
1
vote
1
answer
50
views
Unix group becomes everyone when assigned to a group ID that does not exist
Can you please assist why the ID is assigned to a group named everyone?
# id entitlement
uid=315(entitlement) gid=200(everyone) groups=200(everyone)
Below commands do not return anything:
# cat /etc/...
6
votes
2
answers
788
views
How do I recursively run "chgrp" without changing the group if it matches a specific group?
I just copied all the files/subdirectories in my home directory to another user's home directory.
Then I did a recursive chown on his home directory, so that he became the owner of all his files/...
0
votes
0
answers
43
views
Am I a member of the "users" group or not? [duplicate]
Nobody is in the "users" group:
$ getent group users
users:x:100:
$ getent passwd "$USER"
username:x:1000:100::/home/username:/run/current-system/sw/bin/bash
$ groupmems -g users --...
0
votes
0
answers
17
views
When gpasswd vs moduser/deluser?
About user and groups administration I found in many tutorials that appear:
gpasswd - to add and delete users to a group
moduser/deluser - to add, modify and delete users of a group
What is not very ...
0
votes
1
answer
198
views
/etc/sudoers - clarification about "all" vs "all:all" for groups [duplicate]
About configuration(s) for the /etc/sudoers file with visudo I have read the following tutorials (among others):
How To Edit the Sudoers File
Linux visudo command
A very important part is the ...
0
votes
1
answer
38
views
force update groups - su self wont work - non root - only have ssh login
System administrator added me to a group but I don't see the effects yet.
For example,
> groups # does not return the desired group
I (and all other users) only have the ssh login option to ...
0
votes
1
answer
25
views
How can I set the supplementary groups of a process?
I can see the supplementary groups of a process by running cat /proc/$PID/status and looking at the Groups: line.
How can I modify this value for a process?
I know that these values are normally ...
0
votes
1
answer
25
views
Authorize and Unauthorize by adding and remove user to a group
I want to authorize (or unauthorise) by adding (or removing) user to a group. Is it possible to have the changes be effective immediately without having to reboot?
I just want to give one time access ...
0
votes
1
answer
192
views
chmod 070 allows all but owner of file to wrx
Directory permissions:
d---rwx--- 2 root wheel - 512 Aug 5 15:43 Test/
File permsisions:
----rwx--- 1 chambi wheel - 33 Aug 5 15:42 loop.py*
Both the directory and file only ...
1
vote
0
answers
63
views
unshare with supplementary groups
On my Linux machine, I (my user) have a main group and multiple other groups (note I belong to group 150):
$ id -u; id -g; id -G
1000
1000
1000 6 21 91 97 150 190 465 996 1003
I need to isolate a ...
11
votes
2
answers
998
views
Regain sudo access after nuking secondary groups
While setting up docker on Ubuntu 20.04 I did sudo usermod -G docker $USER. As noted in related questions here, I missed the -a flag and replaced all secondary groups. However, I didn't realize this ...
0
votes
1
answer
59
views
User listed as member of wheel group, but is not in passwd
Does a user account listed as a member of the wheel group, but is not defined in passwd have any meaningful access to the system? I suspect this is an 'artifact' of accounts removed from passwd in the ...
0
votes
1
answer
222
views
Using sed command to print the first column of /etc/group file [duplicate]
I'm trying to use sed command in order to print the first column of the /etc/group file.
If someone have an idea, please share.
0
votes
1
answer
185
views
Multiple folders - multiple user permission
Can I use linux groups and file permission to permit multiple people to add modify and delete files into multiple folders and how?
For example on a local machine :
Having Alice and Bob working on foo ...
1
vote
2
answers
936
views
Difference between owner and group
Can we consider the owner as a group that has exactly 1 member? Does the owner have any special abilities apart from the given permissions?
I want to have two equal users with the same permissions in ...
0
votes
0
answers
223
views
Is the order of user groups important?
I have a user named "black", he is in these groups.
groups black
black: www-data sudo
Some auto generated files are getting created with the group "sudo" instead of www-data, so I ...
2
votes
1
answer
594
views
Group does and doesn't exist but can't be added because it exists
I'm trying to add my user to the libvirt group but I can't because it doesn't exist.
I also can't create the group because it does exist
[core@localhost ~]$ sudo usermod -a -G libvirt $(whoami)
...
0
votes
0
answers
502
views
Group does not show up in groups command
I added a new group. Then I logged out, and logged back in, but the groups command does not show the group. If I try to add the group, I get an error. What gives?
me@z80hd2:~$ groupadd sdk_users
...
2
votes
1
answer
329
views
Firejail overlay permissions and ALSA no sound (wrong group in container/jail)
I'll try to be brief and concise. I want to run programs that require ALSA with firejail profiles but it probably doesn't have the permission or ability to access the soundcard for some reason ...
1
vote
2
answers
569
views
Too few IOMMU groups - split?
I bought AMD RyZEN 5 2400G, Gigabyte B450M D3SH and 16GB RAM. Some elder GPU AMD Radeon HD 6XXX I took for passing through. But I was unpleasantly surprised with the IOMMU grouping.
I put the GPU in ...
1
vote
0
answers
177
views
Missing group entry in gshadow
I recently installed ArcoLinux (Arch), but I am not familiar with a lot of the core linux functionality. I noticed that the service shadow.service failed.
The following is the output of systemctl ...
0
votes
0
answers
62
views
SGID on folder does not affect files
I have set sgid on a folder with user dgillman (me) and group voice. When I touch a new file it has my group, dgillman, instead of inheriting the group of the folder, voice. I can't find any ...
4
votes
2
answers
100
views
Linux list only selected groups a user is part of? [duplicate]
When I use the command groups userid it list out over 100 groups currently assigned to the user.
I need to list only the groups that contain abc.
When I do groups userid | grep abc
In the output all ...
0
votes
1
answer
2k
views
Systemd and group credentials: failed at GROUP spawning
Recently, one of my servers running Deb 10 stopped responding to everything except SSH. After solving an issue where the filesystem was read-only due to a botched fstab, I am now met with almost all ...
0
votes
1
answer
248
views
Setting permissions on files and folder - is folder perms inheritance always implicit?
Objective: Creating a folder on the root, chown to group and add users to group - but users get too wide permissions!
Consider the following:
# as root
# we need a user group
groupadd team1
# we ...
0
votes
2
answers
296
views
How can I find out if the current user is in a specific group?
If I type groups I get a list a back,
$> groups
ecarroll cdrom floppy audio dip video plugdev netdev bluetooth docker
How can I find out if the logged in user is in a specific group?
0
votes
1
answer
38
views
Newbie Question on Permissions
I am really new to Linux and having just brought a Raspberry Pi I decided to run a simple apache server.
I found a simple tutorial on how to install and setup the apache server which is what I have ...
1
vote
0
answers
42
views
I don’t have read permissions on a file but I can read it
I have a file owned by a different user with permissions 440. When I do ‘groups’ I don’t belong to the group of the file, but when I do ‘groups my_username’ I do.
Why am I able to open the file if my ...
0
votes
2
answers
330
views
I'm not in "wheel" group, but I can "su -"
I don't understand. In BSD if I want to run su -, I have to add myself to wheel group.
Is this not true in Linux?
[test@centos ~]$ uname -a
Linux centos 4.18.0-193.19.1.el8_2.x86_64 ...
[test@centos ~]...
8
votes
1
answer
2k
views
How many users can be member of a group in Linux Debian 10 x64?
I know Linux has some limitations for the number of groups a user can be part of. I found out that it is 16 groups for each user, and depends on the Linux kernel. However, is there any restriction for ...
0
votes
1
answer
27
views
Creating a group specifically for password manager, how does that work?
When you use a password manager (client side) on linux, I read that you should place the password database in a directory with OWNER and GROUP "passman" or something.
Then do the same to the ...