group

How to cancel the admin permission of a group?

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 music and gpasswd -A alice music. Now …

Total answers: 1

VirtualBox 7.0 Can't enumerate USB devices / No devices available

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 connect a USB device in the VM settings I get: No devices available …

Total answers: 1

User root while Group is root but Changing Ownership from /dev/ Ultimately

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 has to do with not …

Total answers: 1

File Permission of a User with No Additional Groups

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(foobar) gid=1111(foobar) groups=1111(foobar) Notice that the uid and the gid are the …

Total answers: 2

I don't acquire supplemental groups at login

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 I log in, I get sh rather than bash and I’m not automatically in the sudo group, although groups says that I …

Total answers: 1

What system calls create users and groups?

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 commands to set and get group IDs, but no specifics on how …

Total answers: 2

Allow user in group to access shared folder from another user

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 commands I executed in order: groupadd sharedDocs usermod …

Total answers: 1

output a column group by another columns in shell

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 serv1 black group3 serv1 orange group3 serv2 orange group1 serv2 red group2 serv2 orange group2 serv2 …

Total answers: 4

Does Linux have well-known groups and users, other than root?

Does Linux have well-known groups and users, other than root? 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 Users group, etc. Does Linux have such common groups/users other than …

Total answers: 1

Does chown command allow to set group different from user group?

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 file ownership, you can set a user parameter …

Total answers: 1

How do I have two group owners

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 group owner without deleting …

Total answers: 1

Ext4 "unused inodes" "free inodes" diffrence?

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 have different values in Group 0 ? Group 0: (Blocks 0-32767) [ITABLE_ZEROED] Checksum 0xd1a1, …

Total answers: 1

adding a user to an existing group in linux

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 group. usermod -G artists romeo groupmod -U romeo artists I …

Total answers: 2

How to get list of users with a given group as primary group

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 …

Total answers: 1

Group not listed in groups command

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 docker commands. In /etc/group, I see docker:x:133:user but docker doesn’t show up when I run groups. Asked By: …

Total answers: 1

What are the differences between lgroupadd and groupadd?

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. Asked By: Lee Bruce || Source Compare man lgroupadd and man groupadd: lgroupadd only has a small number of configuration options, to choose …

Total answers: 1

How to set up up group specific folders in linux

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 and groupBTeam to handle the permissions of users. I’ve also assigned the group …

Total answers: 1

How to limit messages from the wall command to a specific group?

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 group: -g, –group group Limit printing message …

Total answers: 1

Is there a similar command like "lid" on Ubuntu?

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 ~]# id user2 uid=1001(user2) gid=1002(user2) groups=1002(user2),1001(g1) [root@192 ~]# id user3 uid=1002(user3) gid=1001(g1) groups=1001(g1) [root@192 ~]# lid -g g1 user3(uid=1002) user1(uid=1000) …

Total answers: 2

Copying a file into a directory where I am a member of the directory group

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 group …

Total answers: 2