Questions tagged [groups]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
755
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 ...
213
votes
8answers
609k 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 ...
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 ...
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 ...
0
votes
2answers
115 views

Folder access permissions - how do they work? [duplicate]

I wonder - why, when some folder has read or read-write permissions for GROUP (or other), the members of the GROUP (or other) can't access this folder? I'm almost sure there is a logical explanation,...
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. ...
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?
2
votes
1answer
143 views

Can I automatically add a guest user (guest-session) to a user group? How can I do it)

I need guest users to be in a specific user group. I probably could create a new guest-account and add it to the group. But I'd rather like to use the existing guest-session-option integrated in ...
5
votes
2answers
280 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: ...
1
vote
1answer
503 views

Terminal shows that my user is only a member of its group, but it is not true - how to fix?

I went to strange situation on my laptop (running Ubuntu 16.04.5 LTS). All terminals show that my sudo-able user is only a member of its group: $ whoami norbert $ groups norbert $ id uid=1000(...
0
votes
1answer
564 views

Dynamically set user groups for directories and files on a directory

I have made some vhosts which resides on my home folder, and i have given the group access to www-data user. This way the project (a web system) renders on the browser. This is a symfony based ...
1
vote
1answer
527 views

How can I make the sudo GUI work without the admin group?

I have a group of users with sudo privileges. That group is not called admin. The users can use sudo on the command line without any problems, however, Unity GUI dialogs requesting root permission don'...
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"?
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, ...
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 ...
2
votes
4answers
1k views

Add Guest account created during login to certain groups?

This question is related to another, more general, question about guest accounts. This one is very specific. Setup: I have many older Dell Latitude E6410s and some newer Dell Latitude 5450 I use in a ...
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 ...
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 ...
3
votes
1answer
120 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
481 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 ...
2
votes
1answer
4k views

Can't open folder after giving it www-data group, how do I become owner?

I was running localhost (Apache 2.4.6) but only the index.php was openable in the web browser. The subdirectories were returning 403 Forbidden error. Now, I added the permissions according to this ...
1
vote
1answer
130 views

Does Ext4 stores owner and group names? Or only IDs?

I am wondering if Ext4 file system stores names or IDs for file ownership information? Most probably the IDs... but that makes another question. Does all Ubuntu versions have standardized IDs for ...
2
votes
1answer
1k views

How do I check that my users and groups are correct?

I have many Ubuntu-powered devices around me. As far I know /etc/group, /etc/passwd, /etc/shadow are created during installation, so they do not belong to any package: $ dpkg -S /etc/passwd dpkg-...
2
votes
2answers
26k views

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 ...
2
votes
1answer
7k views

Shell script for list of users by groups

I want to write a shell script that generates a list of users. for each user display the username and ID and all groups the user is a member of it means like GROUPS command but for all users and with ...
1
vote
1answer
12k views

User Groups and Advanced Settings in 15.04

Ubuntu used to allow me to change user's groups and advanced settings within the "User Settings" GUI. These options are gone now in 15.04. Where do I go to find these settings? (Using the command ...
1
vote
1answer
271 views

Ubuntu logs me back in immediately after logout [closed]

A few days ago I noticed that when I log out of Ubuntu 16, the screens go black and then I am immediately logged back in again. I do not have autologin enabled. Observations of other strange ...
1
vote
1answer
668 views

how should `id` and `/etc/group` be read?

This is a follow-up question to Why is a user not a member of their private group (UPG)? although the first question isn't really necessary to understand this one. The command id seems pretty clear......
1
vote
0answers
234 views

Why is a user not a member of their private group (UPG) according to the GUI? (although CLI proves the opposite…)

I downloaded the current iso file of Ubuntu MATE from the website. I did a completely fresh install of Ubuntu MATE 16.04 (specifically 16.04.5). the same is true for Ubuntu MATE 18.04 (specifically ...
0
votes
2answers
1k views

Why didn't my user get assigned to the group I had added myself to?

I'm on a fresh installation of Ubuntu 18.04. During installation, I chose the minimal installation instead of the standard one. I just added myself to the docker group using the following command ...