Questions tagged [group]

All about Unix groups and access control.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Can gpasswd add non-local users to local group?

We use CentrifyDC in our organization. I have a local group to which I want to add AD users. # getent passwd aduser aduser:x:12345:12345:AD User:/home/aduser:/bin/bash As illustrated, getent ...
0
votes
2answers
27 views

How do I make a directory part of a group?

I created a directory and the next step is to make that directory part of a group. Is this down with chown? Or another command? This is for my schoolwork. We have gone over permissions and changing ...
0
votes
1answer
26 views

how to find the owner of user and group from user HDFS

we can grant the permissions as hdfs user for hive as the following su hdfs $ hdfs dfs -chown hive:2098 but how to do the opposite way? in order to verify the owner of hive and hive group?
5
votes
1answer
94 views

How to change usergroup?

I've created a new user for FTP. useradd -g www-data -d /srv/www/vhosts/project/ black I made a mistake, I actually need the user to be in the group www. How can I change the group?
1
vote
1answer
27 views

Is it good or bad to use group in sudoers file instead of using user_aliases?

I have used user groups heavily while designing access control policies. I find user groups very convenient as it's very easy to implement with PAM. Another reason I have organized the users with ...
-2
votes
1answer
61 views

change folder permission from drwxr-sr-x to drwxrwsr-x

I'm trying to change directory permission from drwxr-sr-x to drwxrwsr-x. I tried to run chmod g+w, but it turned to drwxrwSr-x. The upper case s (S) did not work. Could you give any help on this? ...
1
vote
1answer
27 views

Why does getegid work for others but not me?

I have the following test program: //File: egid_test.c #include <stdio.h> #include <unistd.h> int main(int argc, char** argv) { int egid = getegid(); printf("my effective group is %...
0
votes
0answers
27 views

Whats the meaning of ! in /etc/group? [duplicate]

I found some entries with a ! sign: wwwrun:!:496: ftp:!:459: The second part is the password, but normally it is set to x if it is empty. Whats the meaning of the !? Is it the password?
10
votes
2answers
738 views

What is the easiest way to list all the user:group found in a tarball?

I'm installing some of my data from my old server to my new server. Since I had my old server for ages, I have a huge amount of legacy data with, most certainly, legacy user and group names. When ...
0
votes
0answers
42 views

Allow non root user to execute a binary file owned by root

I am performing the following (as root) in order to allow my non root user joe to run tcpdump: groupadd tcpdump addgroup joe tcpdump chown root.tcpdump /usr/sbin/tcpdump chmod 0750 /usr/sbin/...
0
votes
1answer
45 views

How can I manage docker group in freeipa?

First I tried managing dockerroot in freeipa, since that is the only one I saw with sudo getent group | grep dock. I saw somewhere that said I can create a group in freeipa with the same GID and it ...
0
votes
0answers
23 views

Different permission for different group

I create a folder using sudo mkdir main perssion of this folder is drwxrwxr-- it belongs to a group execute now i have also one more group read. I created 2 users first user1 and second is user2 now i ...
5
votes
3answers
73 views

How can i list a user's groups when their names contain spaces?

Our site uses Active Directory, and many group names contain spaces. This renders the output of groups impossible to parse reliably, even by eye (are there groups "London" and "Developers", or a group ...
0
votes
1answer
54 views

How to make sure all local groups get same GID

I am creating local groups in different linux systems with same name but they have different GID in different system.I have a share drive between these three system and if am creating a folder and ...
0
votes
1answer
36 views

How to group users to give similar file permissions to each user in the group

I have 2 users user1 and user2 in my Ubuntu PC. user1 was the one I created during installation. I created user2 to execute a python program. Now, this program is present in the path /home/user1/...
1
vote
2answers
89 views

Allow rsync to be run remotely as root, but only to read files. A read-only root user?

I would like to use rsync-over-ssh to pull backups from many remote traget machines to a central backup. I could do this as the root user, but that would allow me to accidentally run a bad rsync ...
0
votes
0answers
34 views

Group ownership changes by itself on restart

I changed window managers and now need to be able to change /sys/class/backlight/intel_backlight/brightness (because the new wm cannot change screen brightness natively). I created a user group ...
1
vote
1answer
128 views

command to add multiple “secondary groups” for a user in Solaris

I am trying to add 2 secondary groups for a user is Solaris system, but not able to do so. It only adds 1 secondary groups. I've done enough R&D, not sure what to do. Below command I am using : ...
0
votes
0answers
23 views

Why does groupmems command ask for a password even when executed as root

The groupmems command that allows us to edit group membership has a peculiar trait: When executed as root, it again asks for root password when trying to edit any group membership for any system user. ...
3
votes
1answer
45 views

Why is there no “set effective supplementary GIDs” syscall?

The "effecive user/group ID" of a process is what the OS uses to determine whether an action (such as opening a file) is permitted by the process. You can set the effective primary GID of the current ...
0
votes
1answer
35 views

Pass a group of bash commands to bash function

I want to pass the following group of bash commands { echo Apple; echo Banana; } as an argument to a bash function defined in .bashrc as follows: BashFunction(){ "$@" | SomeOtherFunction } ...
0
votes
0answers
26 views

No SoundCards found probably permission problem

The output of aplay -l is: no soundcards found, but when I do sudo aplay -l I get: **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 ...
0
votes
0answers
19 views

Automatic expiration date for UNIX group membership

I want to add user to specific UNIX group only for 6 months. Then I want automatically kick him out of this group and I don't want to expire his username. Which command should I use?
2
votes
2answers
77 views

Can't create directory in directory owned by group

I have a group called homeperms on an Ubuntu system, with a few users: $ cat /etc/group | grep "homeperms" homeperms:x:1004:jorik,tim.wijma,vanveenjorik,jorik_c And I've done $ sudo chgrp -R ...
1
vote
1answer
207 views

What is the purpose of the 'ssh_keys' group?

I was asked to add a user to the ssh_keys group, but could not find what the purpose of this group is, so I had to refuse it, but need to learn better. This is about RHEL 7
1
vote
1answer
135 views

Primary and secondary group of a user

Why is it that group1 which should be user's primary group, is in the subgroups? The user is not even part of group1 in /etc/group file. # id user uid=1000(user) gid=1111(group1) groups=1111(group1),...
0
votes
1answer
43 views

match groups with an inverted match

I need to extract with -o1 a group that is matched in lines that do not contain a string. If I use -v pcregrep does not match any groups - which is reasonable: I'm asking to group-match something in ...
0
votes
1answer
37 views

Cannot delete a file in a group

I'm trying to clean some garbage shared memory files left behind by a service after crashing. The service is run as a system user and a specific group. I'm a member of that group, but can't delete ...
0
votes
0answers
18 views

SetGID on folder with Active Directory users

I have a directory which staff are allowed to sftp into on an Ubuntu 18.04 server. The directory is root:www-data owned (it's a web server) and I've set chmod +t and chmod g+s so data cannot be ...
1
vote
1answer
59 views

Is it ok to have no newline at end of /etc/group?

I ran into a problem on busybox where my /etc/group file was not properly processed. bash> tail /etc/group ... onebutlast::1001:user1,user2 last::1002:user3bash> The user3 was not in the last ...
0
votes
1answer
393 views

Use AD Groups Instead of Linux Groups

On our file server, we are using a bunch of Linux groups that are still in use and need to be replaced by their counterparts in AD. The groups in AD and /etc/groups have an identical name, so, (I'm ...
0
votes
2answers
75 views

How to sort members alphabetically in /etc/group?

In my /etc/group file, I had the groups needed for various file shares, with their members listed. Some of these lists are quite long, and I'd like to find a way to sort the members of each group. Is ...
4
votes
2answers
207 views

list files with specific group and user name

Do you know a command to list all files on the server with specific group and user name? I am looking for something like this: find -ls -group 'groupname' && find -ls -user 'username' this ...
2
votes
0answers
54 views

How to deny crontab to group

I'm trying to deny crontab to group but I had no success so far. Nor I saw how to do it, or even discussions about it. Is it possible to deny crontab to groups instead of users? Imagine if you have ...
1
vote
1answer
36 views

Debian/dpkg handle group id collision

In my network there is a special user group with the ID 101. Unfortunatelly, Debian wants to use the ID 101 for the group systemd-journal. Since it exists only locally, I assigned systemd-journal the ...
7
votes
2answers
351 views

different output for groups and groups USERNAME after adding a username to a group

I stumble across a weird behaviour today. After adding a user to a new group like so : # gpasswd -a test myuser then connecting to a new bash session, here are the result for groups and groups ...
1
vote
2answers
416 views

How can we add multiple users to a group by single command in Linux?

I have to use usermod -G groupname username everytime to add user to group. Isn't there any way to do it by single line like usermod -G groupname user1,user2,user3
6
votes
1answer
392 views

Added a new user on Ubuntu, set password not working?

I created a new user: $ sudo useradd -m Ari -p pass123 But when I went to login it said the password was incorrect, I know it's correct because I saved the command line log as a text file. Other ...
3
votes
1answer
59 views

logout/login not enough to update group membership

I just added myself to "docker" group on my workstation. I dutifully logged out and in again on my desktop environment but I'm still not on the group: mcon@cinderella:~$ id uid=1000(mcon) gid=1000(...
1
vote
2answers
58 views

Group ownership modification - pitfalls

I'm user user and my primary group is user. If I change my primary group to primary_group, all of the files owned by me are suddenly owned by primary_group. This was unexpected to me. If group user ...
0
votes
0answers
121 views

CIFS permission issues when mounting a NTFS partition

I'm attempting to mount an NTFS file share. sudo mount.cifs //address.fileshare.com/TestMount /home/me/TestMount -o username=MyUserName,domain=MyDomain,uid=MyUserName,file_mode=0777,dir_mode=0777, ...
4
votes
1answer
85 views

What is the signifance of the Primary Group of a user?

Why must a user in POSIX-compliance have a Primary Group? Why can't they just belong to groups?
0
votes
2answers
916 views

Which owner group does `ls -l` show?

When the file owner is part of several groups, how does ls -l decide which group to show? For example, on MacOS, I see drwx------+ 48 flow2k staff 1536 Feb 5 10:11 Documents drwxr-xr-x+...
1
vote
0answers
286 views

Unable to add user to a group due to sssd?

I'm working on Fedora 29 x86_64 fully patched. I'm trying to add my user to the dialout group so I can open the modem: $ ls -Al /dev/ttyUSB0 crw-rw----. 1 root dialout 188, 0 Feb 22 19:27 /dev/...
0
votes
0answers
35 views

How to empty the list of supplementary group IDs for a process?

When I create a child process, it inherits the supplementary gids of the parent. If the parent is a root, then the child has (0) as supplementary gid. This behavior is not desired. Is it possible to ...
0
votes
2answers
479 views

Unable to access group files even though user is part of the group

I am trying to access a directory test as user ayush. This directory is owned by user ayush and has group git The directory has permissions 0070, and group git, and ayush is a member of that group. ...
1
vote
1answer
137 views

Directory owned by a group that doesn't exist? [duplicate]

I'm witnessing a a directory which has for group owner "1002" ... However I do not have any group with such ID (verified with getent group | grep 1002 ). Even history | grep groupadd gave nothing. ...
1
vote
1answer
34 views

Mass Assign Users to Groups

I have 2 text files, users.txt with a list of 1000 users and groups.txt with a list of 50 groups. I want to run a command that adds 30 users to each group (ex: users 1-30 to group 1, users 31-60 to ...
0
votes
0answers
31 views

if the member of any group has only the execute permission will the be able to enter into the directory belongs to that group?

# mkdir -p /test/music # created this dir as a root # chmod g=x,o= /test # rwx--x--- # gpasswd -a x1 root # adding x1 user into the root group # su - x1 # login as x1 $ cd /test ...
2
votes
1answer
69 views

ID inheritance – Which IDs?

I'm learning UNIX file permissions / ID inheritance and would like to clarify something: I have this list of permissions, users, groups and files: -rwxr-xr-x userA A foo -rw-rwsr-x userB B bar ...