Questions tagged [groups]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
754
votes
7answers
1.3m views

How to add existing user to an existing group?

I want to add the Apache user (www-data) to the audio group. I've read the man page for useradd, but I'm not having any luck. I'm running xubuntu 11.10. Here's what I'm doing: $ sudo useradd -G audio ...
212
votes
8answers
608k views

How do I add a user to the “sudo” group?

In /etc/sudoers I see this: # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it ...
146
votes
2answers
371k views

How can I display all users and groups with a command?

I want to display: All users and All groups in my system using command-line. users and groups commands display users currently logged in, and groups a user belongs to respectively. How to display a ...
52
votes
1answer
30k views

What is a “system” group, as opposed to a normal group?

I need to add a group of users to my system. I read the adduser and addgroup manpages and the question here about "users" and "system users". I need clarification with groups and system groups, ...
35
votes
5answers
103k views

What is the group id of this group name?

How to get the group ID GID giving the group name. The output would be for example: Group adm with GID=4
29
votes
1answer
17k views

What is the difference between the groups “adm” and “admin”

What is the group "adm" and for what it's use? and what are the differences form the group "admin"?
29
votes
3answers
7k views

After adding a group, logout+login is not enough in 18.04?

In ubuntu 18.04 with default desktop, behaviour of logout/login has changed: Previously on an Ubuntu system, when I find that I need to add my user id to some group, it was sufficient to sudo ...
24
votes
2answers
42k views

What is the difference between primary group and secondary group in Ubuntu?

What is the difference between primary group and secondary group in Ubuntu?
22
votes
6answers
214k views

How to add users to vboxusers to enable USB usage

I want to use my flashdrive in Windows XP, which I am currently running in Virtualbox, but when I open up the settings to enable usb usage, I get an error: Failed to access the USB subsystem. ...
14
votes
2answers
3k views

What is the purpose of the group named “users”?

On my Ubuntu a group "users" with id 100 exists. But it has no members at all. My questions are: What is the purpose of this group? Should each user of the system become a member of this group?
13
votes
3answers
3k views

How do I find files with no group permissions?

I just want to know how I can find, in a folder, the files that have no group user permission (no read/write/execute) at all, using the terminal.
13
votes
2answers
8k views

Difference between adduser and usermod -G -a

What is the difference between adduser user_name group_name and usermod -G -a user_name group_name At first glance they seems to do the same thing : add a user to a group.
12
votes
1answer
18k views

Output of getent group

Similar to This question, but different result set, can anyone help me with the output of getent group? It's something like this: groupname:x:0: just not sure what the x:0: signifies?
12
votes
2answers
12k views

Can't access directory I am a group member of

On my web server I have a directory ‘www’ that has the permission drwxrwxr-- and user:group root:www-data so that Apache can access it. Now I have added my account to the group www-data with sudo ...
11
votes
1answer
37k views

groupdel: cannot remove the primary group of user 'administrator'

When I try to delete the group pro1 (groupdel pro1) it shows the error: groupdel: cannot remove the primary group of user 'administrator' And when I create new user from AD server, the user's ...
10
votes
4answers
17k views

Terminal: List all directories for which a user or group has write permission

I'd like to list all the directories for which a user or group has write permissions. I found this question on ServerFault, but it addresses a Windows Server, so I'm optimistic there's something ...
10
votes
3answers
5k views

Disable PAM module for group

I recently enabled two-factor-authentication using google-authenticator on my SSH server. However I am now facing a problem: I have a different group of users on my server which I am using for SFTP, ...
9
votes
2answers
13k views

Can I add a user group to another group in Ubuntu?

I have file named abc.txt and 3 groups (Teacher, Staff and Student). I want to create a group name CanView, which allow Teachers and Students to view the file abc.txt. Can I add Teacher and Student to ...
8
votes
1answer
5k views

Why is my GID environment variable empty?

I try echo $GID but get nothing. However, I can get 1000 by using id -g, what's the differences between them ? id -u => 1000 id -g => 1000 echo $UID => 1000 echo $GID => The ...
7
votes
2answers
15k views

How to add a new group to user root?

I am running a Ubuntu 16.04 as a guest for a Windows 7 host. I shared a folder inside Windows and I should be able to see and open the file inside the Linux. The issue was me, as root, could not ...
7
votes
1answer
1k views

What is the significance of the output of cat /etc/group? [duplicate]

When I run cat /etc/group on Ubuntu 18.04, I get this output: root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4:syslog,singrium tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: ...
7
votes
1answer
6k views

Implications of manually adding a user to the staff group

This came up as a permission issue on Ubuntu 16.04. I was unable to remove some R libraries installed in /usr/local/lib/R/site-library. It turned out that I did not have permission. The directory was ...
7
votes
1answer
12k views

Is it possible to use docker without sudo?

According to the answers of this question about docker, running it as a non-root is as easy as adding the non-root username to the docker group, and logging out and back in. And sure enough, when I ...
6
votes
1answer
2k views

What groups should your default account be a member of?

Can someone post the groups your first Ubuntu accounts are in? I tried to add my account to a group but it removed all other groups. I remember it was part of adm, sudo etc etc. There's no way to ...
6
votes
1answer
604 views

Why did I need to *reboot* to change my group membership [duplicate]

Attempting to install MythTV on Ubuntu 18.04, I ran... sudo usermod -a -G mythtv roger ...and logged out and back in. This should be sufficient. But: my group memberships didn't change. I had to ...
6
votes
1answer
14k views

logrotate fails to rotate logs: error setting owner

Recently I've noticed that logrotate does not rotate my logs. user1@host:~$ /usr/sbin/logrotate /home/user1/logrotate.conf -v gives me an error: error: error setting owner of /home/logs/mylog.log.1 ...
5
votes
2answers
714 views

`groups` and `groups $USER` show different groups (dialout is missing)

I have a problem opening a USB port /dev/ttyUSB0. The device node for this port is: crw-rw---- 1 root dialout 188, 0 juil. 25 17:18 /dev/ttyUSB0 It seems that there's a problem with groups command ...
5
votes
2answers
278 views

Run TTY script every time I open a GUI terminal

When I log in to a TTY I get the following nice text: Ubuntu 16.04.03 LTS Log-in: username Password: Last log-in date/time Welcome to Ubuntu 16.04.03 LTS * Documentation: * Management: * Support: ...
5
votes
1answer
3k views

What are the default groups of the first user after a fresh install of Ubuntu 15.10? [duplicate]

I accidentally added myself to a group using the command usermod -G vboxsf daniel and I forgot to add the parameter -a ... Now I need to revert the changes. What are the default groups of the first ...
5
votes
1answer
405 views

Relationship between file/folder's owner and group?

I found that a directory with following ls output in my system: drwxr-xr-x 5 username root 4096 Jan 14 2015 DIRNAME It rose a question for me: Is there any restriction between files owner and ...
5
votes
1answer
31k views

Connection closed when trying to connect to sftp server. Match group issue?

I'm trying to connect to an Ubuntu server 14.04 LTS with the following command: sftp -P xx user@host (the ssh-server is configured to listen to a different port). The user I'm trying to login with, is ...
5
votes
1answer
36k views

Why is usermod -a -G sudo username not working?

During OS installation, I created only one account. Let's call it howdy. I thought it would have sudo privileges but I was wrong. I scoured the internet and this forum to find out how to add howdy to ...
5
votes
2answers
3k views

log alert: unknown group “power” in message bus config file

Server v18.04 log has many of these: Sep 3 21:32:17 [pcname] dbus-daemon[1179]: Unknown group "power" in message bus configuration file What does this mean?
4
votes
5answers
8k views

How to create file as specific group

This may sound odd. My username is ubuntu and my machine is called ubuntu. What I want is when I create a file in some folder that it has a signature user group ubuntu www-data at the ...
4
votes
1answer
557 views

Can a user also be a group itself?

In my Ubuntu 16.04 terminal, logged in as "john" (a normal user), I enter: john@ubuntu-server:~$ groups john Then the output goes: john: john adm ...... So I wonder how john can be a user and a ...
4
votes
1answer
14k views

How do I add myself to the video group after installing AMDGPU-PRO driver?

I'm trying to install AMDGPU-PRO 16.40 but after installation I can't add myself to the video group. I've tried running sudo usermod -a -G video $LOGNAME but after going into groups all I can see is ...
4
votes
1answer
4k views

Automatically add users to groups

I am creating a custom iso for a friend. How can I add all users and future new users to the audio (or any other) group? If I want to add a single user I would run sudo adduser $USER audio Is ...
4
votes
1answer
4k views

Find the files of a particular user or group

How can I search the files based on the owner or group in command line? Right now I have tried ls -lR, that gives all the details of files in sub directories also, and I needed to manually search ...
4
votes
1answer
3k views

Lost supplementary user groups for GUI login session

Ubuntu 16.04.5 Very weird situation - after Xorg crash, now every time when I login into Unity, my user account doesn't have it's system groups like adm, sudo, plugdev, fuse etc. But when I login on ...
4
votes
1answer
202 views

Prevent new users from being added to a group with the same name as user name and instead add to generic group?

I need to add several new users to a system. Each of these users should be a member of the same group - appdev - and should not be assigned to a group that is the same as their user name. Can I do ...
4
votes
2answers
3k views

Secondary user groups not loaded

After the apt-get update and apt-get upgrade run few days ago, user groups are not applied properly to the currently logged-in user. I can see all the groups being properly saved in the /etc/passwd ...
4
votes
1answer
1k views

Where does Ubuntu store the default groups new users are added to?

Is there a file that contains the list of default groups that all newly created users will belong to? An answer to the following question provides a work-around for creating users with certain group ...
4
votes
1answer
2k views

Restore accidentally erased /etc/group file

I was trying to modify the /etc/group file, and accidentally cleared its contents. Now, I can't even use sudo anymore, and I don't know what else is broken. How can I fix this?
4
votes
1answer
2k views

Group shares not listed by smbtree, nautilus due to not asking for password

We recently migrated to Samba 4.4.16 (from 3.5.15). Our configuration contains a number of shares which have group access only (@group or +group) which map to unix groups. Here's an excerpt of the ...
3
votes
2answers
2k views

Permissions, owner, group inheritance?

I don't understand restrictions in terms of directories nesting. For example, /var/www/folder/index.html directories. What permissions, owner, group should every directory and file have? Is there ...
3
votes
1answer
480 views

What is the normal reason for changing user ID?

A little discussions alike this what is a fame of Askubuntu hints me to ask for community opinion due to this is a "multipolar" theme and adequate answer written normal English at the normal user ...
3
votes
1answer
119 views

How can I view what groups a user is in?

What are some different ways to view what groups a user is in?
3
votes
1answer
532 views

list group of logged in users

I know I can see the list of logged in users, with the who command. But lets say, I want to see who in my group is logged on. How can I do that?
3
votes
1answer
1k views

Ubuntu group permission for directories and files

I might be getting this groups thing completely wrong but this is what i was trying to do. Created new Ubuntu 17.4 desktop installation in virtual box. When installing added user 'administrator'. ...
3
votes
1answer
101 views

Missing account at start after change userid

The goal was to change userid, groupid to be in the same group with others. We followed this instruction: How can I change my own user ID? You can change it in /etc/passwd, /etc/group and /etc/...

1
2 3 4 5