Questions tagged [groups]

243 questions
914
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
  • 13,199
251
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…
234
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
  • 37,289
77
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,927
  • 6
  • 26
  • 32
65
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…
47
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
  • 87,123
43
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
  • 87,123
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…
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?
18
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
  • 205
18
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.
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
15
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
  • 258
  • 1
  • 2
  • 10
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
14
votes
1 answer

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 output of id: uid=1000(user) gid=1000(user)…
Corey
  • 297
1
2 3
16 17