Questions tagged [groups]

239 questions
829
votes
8 answers

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 www-data useradd: user 'www-data' already…
Sparky1
  • 12,109
  • 8
  • 20
  • 14
233
votes
8 answers

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 further down) %sudo ALL=(ALL) ALL So how do I add a…
coffee-grinder
  • 3,875
  • 8
  • 25
  • 22
194
votes
2 answers

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 list of all users and all groups by…
Pandya
  • 34,843
  • 42
  • 126
  • 186
70
votes
1 answer

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, because as far as I know, groups can't login, so the…
useful
  • 1,764
  • 4
  • 24
  • 31
46
votes
4 answers

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
Maythux
  • 82,867
  • 54
  • 239
  • 271
45
votes
6 answers

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. VirtualBox is not currently allowed to access USB…
GingerHunter797
  • 451
  • 1
  • 4
  • 3
37
votes
1 answer

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"?
Maythux
  • 82,867
  • 54
  • 239
  • 271
32
votes
3 answers

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 adduser ludwig docker # adds me to group docker and…
Ludwig Schulze
  • 716
  • 1
  • 5
  • 13
26
votes
2 answers

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

What is the difference between primary group and secondary group in Ubuntu?
Nematullah Tanin
  • 261
  • 1
  • 3
  • 3
17
votes
2 answers

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?
Mathias
  • 195
  • 1
  • 11
17
votes
3 answers

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 usermod -g www-data myuser and if I do groups then…
dazz
  • 346
  • 1
  • 5
  • 12
16
votes
3 answers

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.
John Baptist
  • 331
  • 2
  • 6
14
votes
2 answers

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?
twitchd8
  • 147
  • 1
  • 2
  • 9
14
votes
2 answers

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.
snoob dogg
  • 240
  • 1
  • 2
  • 10
13
votes
1 answer

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 default group is pro1. How can I fix this problem?…
roadkiller180
  • 133
  • 1
  • 1
  • 4
1
2 3
15 16