Questions tagged [groups]
238 questions
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
- 84,289
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
7
votes
5 answers
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 moment whatever i create has a signature
ubuntu …

lewis4u
- 4,866
7
votes
2 answers
`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 and the group dialout as:
doom@doom-PC:~$…

doom
- 231
6
votes
0 answers
can't add user to a group
I would like to add my usr ron to the docker group, so I did the following:
ron@regDesktopHome:~$ sudo usermod -a -G docker ron
ron@regDesktopHome:~$ groups
ron
Why does it only show group ron as the user obviously also is a member of…

stdcerr
- 1,080
- 5
- 19
- 36
4
votes
1 answer
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?

Hitechcomputergeek
- 1,163
- 2
- 11
- 18
4
votes
2 answers
groupadd fails with "cannot lock /etc/group; try again later"
I am connected to an Ubuntu 12.04.3 LTS server via SSH; when I try to add a group, I get the following message:
groupadd: cannot lock /etc/group; try again later.
In researching this problem, I found some suggestions to look for and remove a…

Air
- 185
2
votes
2 answers
Newgrp function
I couldn't exactly understand function of newgrp. Does it helps to move from one group to another group for which particular user is member. Or it allow to become member to group for which the user is not member ,but has group password. I am not…

Dechen
- 81
2
votes
1 answer
Add myself to a group, and `groups` does NOT reflect it immediately, why?
Execute the two commands, that is, adding current user to tcpdump group, then check the result by querying groups. BUT, groups does not report I'm a member of tcpdump why?
Screenshot from Ubuntu 22.04:
At this time, I checked /etc/group file, it…

Jimm Chen
- 333
0
votes
1 answer
User Group Change
I have changed the default group of a user using chgrp command. After that I'm getting the error message" 'Username' is not in the sudoers file. This incident will be reported" for basic commands like sudo yum install update.
Any idea. Much…

user497091
- 13
0
votes
1 answer
Recovering a lost user group
Related to this question, I recently detached a disk from a Linux cloud machine (Ubuntu 18.04). When I reattached it to a new VM (also Ubuntu 18.04) I discovered that the user and group information had been lost, and most of the files were now…

John
- 181