For questions relating to user groups, in a security or permissions context, independent of platform.
Questions tagged [usergroups]
343 questions
32
votes
5 answers
Can't add user to docker group
I'm trying to set docker up on a new system, and when running docker info I get:
docker -v
=> Docker version 18.09.5, build e8ff056
docker info
=> Got permission denied while trying to connect to the Docker daemon
socket at…

Mark
- 6,112
- 4
- 21
- 46
28
votes
1 answer
In tmux I only have 2 groups
In tmux I only have 2 groups, as opposed to the expected 5:
$ groups
username sudo staff website1 website2
$ tmux
$ groups
username sudo
Why is this and how do I fix it?

the
- 21,007
- 11
- 68
- 101
25
votes
3 answers
Django how to remove a user from a group
Here is the code I add a user to a group
g = Group.objects.get(name='groupname')
g.user_set.add(your_user)
When I delete a User how I remove this user from group?

icn
- 17,126
- 39
- 105
- 141
23
votes
1 answer
Ubuntu 15.10 no fuse group
I am trying to use sshfs to mount a remote file system. All the guides I can find online say I need to add myself to the fuse group but when I run
sudo gpasswd -a $USER fuse
I get
gpasswd: group 'fuse' does not exist in /etc/group
however when I…

Michael
- 433
- 1
- 5
- 10
23
votes
2 answers
Changing the user that nginx worker processes run under (Ubuntu 12.04)
I have a manual install of nginx on Ubuntu 12.04. When I ran ./configure I used the following options:
./configure --user=www-data --group=www-data --with-http_ssl_module --with-http_realip_module
Now the nginx worker processes run under the…

iamyojimbo
- 4,233
- 6
- 32
- 39
20
votes
1 answer
How to create custom groups in django from group
I'm trying to figure out how to create custom groups in Django, in way that groups are related to application and not to a Project.
For example when a user want to create a company, it should be the owner of the company:
model
class…

realnot
- 721
- 1
- 11
- 31
17
votes
6 answers
Sharepoint: Check if a user is member of a group
how can I check if a user (not the one currently logged in) is member of a certain group? Trying to retrieve a user from a group of which he's not a member leads to an SPException, so checking for null is not possible.
So how would you solve this…

Flo
- 27,355
- 15
- 87
- 125
16
votes
2 answers
Two owners of the same PostgreSQL database
Is it possible with Postgresql to create a database which has 2 users which act like owners to the database?
I can create a group role and add both users to that group, and then make the group the owner of the database, but this requires both users…

David Reynolds
- 3,141
- 3
- 18
- 19
13
votes
2 answers
How to show all users in dockers group?
How can I find out which users are in the docker group and allowed to start docker containers? (Docker 1.12.1)

Soerendip
- 7,684
- 15
- 61
- 128
12
votes
8 answers
How to add a user to a group without logout/login - Bash script
I searched and could not find this answer anywhere else. Apologies if it's a bit of a noob question for someone not that experienced at scripting.
I'm trying to create a bash script to setup a server with all software needed for an application. In…

Dean Hutt
- 131
- 1
- 1
- 3
11
votes
6 answers
Using python3 in shell script in crontab
I try to run a shell script with crontab which runs python3 scripts.
The crontab is for a user group. Now it runs the script but not the python3 scripts inside it. I try to debug it but I can't figure out what happens. It might be a permission issue…

Yannick Widmer
- 1,286
- 3
- 19
- 30
11
votes
3 answers
Add group "Everyone" to directory and all of it's sub-directories
I'm currently using Vista 32-bit. How do I add the Windows security group "Everyone" and give full control to a directory and all of it's sub-directories and all files? Is there a powershell script that I could use?
Thanks!

tempid
- 7,838
- 28
- 71
- 101
10
votes
2 answers
Update user group OctoberCMS rainlab user plugin
How can I update change user's group? simply cant find it. spent couple hours.
$user = new User;
$user->group = 'new';
$user->save();
User is in relation with belongsToMany with Group.
Not working.
Thanks.

aleXela
- 1,270
- 2
- 21
- 34
10
votes
2 answers
How to create a local user group (in C#)
I'm looking for a way how to programmatically create a local user group. I found plenty of examples on how to query and add users but nothing I can understand about how to create a new group.
var dirEntry = new DirectoryEntry(
…

The Diamond Z
- 319
- 3
- 10
10
votes
2 answers
NSUserDefault change notification handling in watchAppExtension
I'm creating a Watch app just to display a value on the watch when the user taps on a table view in the iPhone/host app.
I would like to get a notification the value changes on a shared UserDefault. It is shared between WatchKit app and the iOS…

ManuRaphy
- 361
- 1
- 13