For questions relating to user groups, in a security or permissions context, independent of platform.
Questions tagged [usergroups]
326 questions
35
votes
1 answer
User groups and permissions
I need to implement user rights for user groups (pretty similar to facebook groups). For example, each group can have members with rights like: can_post, can_delete, can_ban, etc. Of course, one user can be a member of many groups and group can have…
![](../../users/profiles/1307281.webp)
duke_nukem
- 637
- 2
- 8
- 16
24
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?
![](../../users/profiles/1245190.webp)
kqw
- 17,649
- 11
- 61
- 92
22
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…
![](../../users/profiles/1772238.webp)
iamyojimbo
- 2,883
- 5
- 22
- 35
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…
![](../../users/profiles/2653437.webp)
realnot
- 641
- 7
- 23
20
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…
![](../../users/profiles/5982234.webp)
Michael
- 383
- 1
- 3
- 9
19
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?
![](../../users/profiles/96864.webp)
icn
- 14,804
- 36
- 98
- 131
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…
![](../../users/profiles/19601.webp)
Flo
- 26,717
- 14
- 82
- 124
13
votes
2 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…
![](../../users/profiles/6535997.webp)
Mark
- 5,352
- 4
- 13
- 35
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…
![](../../users/profiles/2921683.webp)
Yannick Widmer
- 984
- 11
- 25
11
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…
![](../../users/profiles/188709.webp)
David Reynolds
- 2,931
- 3
- 16
- 19
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.
![](../../users/profiles/1873689.webp)
aleXela
- 1,066
- 1
- 16
- 29
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(
…
![](../../users/profiles/377520.webp)
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…
![](../../users/profiles/3295851.webp)
ManuRaphy
- 351
- 1
- 13
10
votes
2 answers
Managing users/roles/groups in FOSUserBundle
I am developing a simple CRUD to manage users/roles/groups of the application in which I am working. To manage users I'm using FOSUserBundle. What I want to do can be accomplished in several ways:
Assigning roles to groups and then assign users to…
![](../../users/profiles/719427.webp)
ReynierPM
- 15,161
- 39
- 158
- 314
10
votes
2 answers
Difference between user groupId and scopeGroupId
Whats the difference between themeDisplay.getUser().getGroupId() and themeDisplay.getScopeGroupId()?
If I retrieve Layouts (pages) from it, would they have any different URL pattern like, /web-or-user//* or /web-or-user-or-group//*?
I…
![](../../users/profiles/1352530.webp)
Whimusical
- 5,757
- 8
- 51
- 91