Stack Exchange Network

Stack Exchange network consists of 174 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
26 views

moving groups from group 100 to group 1000 [on hold]

The question is the title above. I've tried the mv command but that only moves files and directories.
4
votes
1answer
43 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 ...
0
votes
0answers
24 views

Share Groups for Samba Debian 9.6

This "server" will be used as file share in a Windows network for a non-profit organisation. It has a drive partitioned for operating system and two other drives, one is called SHARE and the other is ...
-1
votes
1answer
66 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
39 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
69 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
31 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
0answers
27 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
0answers
42 views

Unable to CD into directory

One user in our environment is unable to cd into a directory they have group access to. Even as I su into their account, still get permission denied. [jdoe@server1 scratch]$ id uid=79029(jdoe) gid=...
0
votes
0answers
31 views

Not able to create directory although group has permission to write and I am part of group [duplicate]

I am trying to create a directory under a mounted filesystem under /mnt/data1. (It is an ext4 filesystem, if that matters.) I am trying to create a directory called Dropbox (/mnt/data1/Dropbox), but ...
0
votes
1answer
75 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
31 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
0answers
15 views

id displays different Groups after group removals

OS : Centos 7.5 I wanted to remove two groups form my account. for displaying I changed to abc. id abc uid=1001(abc) gid=1001(abc) groups=1001(abc),4(adm),10(wheel),190(systemd-journal) gpassd abc -...
0
votes
1answer
27 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
16 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
29 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
18 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
68 views

groupadd --root vs. chroot + groupadd

I am trying to prepare an image with buildah, but I am running into a problem with creating a new group inside the container. buildah mount created a resonably healthy looking dir structure at /var/...
0
votes
0answers
44 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
21 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
24 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
46 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
287 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 ...
10
votes
3answers
811 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
29 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
155 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
30 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
113 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
44 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
126 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
482 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
423 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
76 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
570 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
37 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
44 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
152 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
26 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
2k 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
77 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 ...
2
votes
1answer
76 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
86 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
34 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
39 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
177 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
698 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:...
0
votes
0answers
80 views

Hpux: /etc/group nogroup has -2,what does it mean?

On Hpux grep "nogroup" /etc/group return nogroup:*:-2: Nogroup is name,* mean "shadow" enabled,but what does it mean -2?
2
votes
3answers
251 views

Grep for groups with more than one user

We are getting ready to migrate to Active Directory-based Samba, from the old style domain. Currently all our groups are flat - users belong to groups, but groups can't belong to other groups. Since I ...
0
votes
1answer
65 views

Root password not in use in thunar when a user is in sudo group?

I am just asking for a confirmation here since I'm not really sure how it works So, I have Debian Stretch on my home machine, I was the sole user so I had a normal user account and used su - when I ...