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
1answer
21 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
14 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
23 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
16 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
29 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
43 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
20 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
21 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
42 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. ...
0
votes
0answers
19 views

Is there difference between the “primary” group and supplementary groups of a username in terms of concepts and uses? [duplicate]

in /etc/passwd, a username is associated with a group id. Is there a name for this single group for the username, like the "primary group" of the username? In /etc/group, a group is associated with a ...
1
vote
2answers
114 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 ...
9
votes
3answers
734 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
23 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
55 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
0answers
61 views

NIS Adding User to Group Change on Client or Server

How to NIS Group Add? I am working in an existing NIS environment for the first time. How would I add a user to a group and have that change propagate? Do I just use the groupadd command on a client ...
0
votes
1answer
26 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
38 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
33 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
52 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 ...
3
votes
2answers
242 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
312 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
55 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
265 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
35 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
33 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
94 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
24 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
893 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
76 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
75 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
61 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
25 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
27 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
150 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
585 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
65 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
213 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
63 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 ...
2
votes
2answers
47 views

Why can't regular users create and manage user groups?

I've been wondering if there is a good reason why a regular user can't create their own group. It would make sense for the file owner to be able to set up a group and manage file permissions. For ...
0
votes
0answers
35 views

How to change group for apache user in Fedora [duplicate]

I have directory project in home directory and symlink to it in /var/www/html And I can't open files because got error 403, I set the Group in httpd.conf to kuba (my main user/group) run systemctl ...
0
votes
0answers
31 views

Arch Linux; further restrict access to sudo

I'm setting up my Arch Linux system on VirtualBox, and I've gotten to the step of adding sudo, but I want to do something to further secure admin access. I've created my own custom group, gg3, and ...
0
votes
1answer
21 views

Make a one column report list

In the /etc/group we have many many users in one group, separated by comma like, jdoe,adoe,cdoes, etc. I need to make a (one column) list for my report that looks like: jdoes adoe cdoe .....
0
votes
0answers
77 views

ntfs-3g: Impact of “using problematic uid==0 and gid!=0”

When I mount a NTFS partition with uid=0 and gid=2000, I get the warning that I am using problematic uid and gid: ntfs-3g[263]: Version 2013.1.13 integrated FUSE 27 ntfs-3g[263]: Mounted /dev/sdb1 (...
3
votes
2answers
392 views

setgid: chmod g+s,g-x on executable

I'm not understanding setgid on executables on my platform (ubuntu). g-x,g+s is not giving the process effective group permissions of the program's owner. $ gcc perms.c -o perms; ls -l ; ./perms -...
32
votes
3answers
4k views

May I sort the /etc/group and /etc/passwd files?

My /etc/group has grown by adding new users as well as installing programs that have added their own user and/or group. The same is true for /etc/passwd. Editing has now become a little cumbersome ...
1
vote
0answers
156 views

Debian 9 - useradd

Here is an extract of /etc/default/useradd: GROUP=1005 Here is an extract of /etc/login.defs: USERGROUPS_ENAB no Here is the useradd command I run to create a user: $ sudo useradd test22 $ id -a ...
1
vote
1answer
23 views

Clone ownership and group of coincident name files and folders between two servers

I need to sync only ownership and group of each file and dir between two server filesystems. That's to say if I have server A and server B, I don't need and don't want to copy data from one server to ...
1
vote
2answers
183 views

How to merge two /etc/group files

I have two files in style of /etc/group : root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4:username tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: ubuntu:x:999: And I want to merge them into a third ...
0
votes
1answer
38 views

How can I automate adding a new user, using an existing user's groups?

Raspberry pi comes with a default user account that is added to multiple groups: username@hostname:~ $ groups pi pi : pi adm dialout cdrom sudo audio video plugdev games users input netdev spi i2c ...