Questions tagged [usergroups]

For questions relating to user groups, in a security or permissions context, independent of platform.

343 questions
0
votes
1 answer

How do I add the local users to my docker container?

I want to know how I can add the local users of my server to a docker container. I don't need to import their files, I just need a username/password/privileges with new home directory in the docker container for every user in my system. For example,…
0
votes
0 answers

In Apache hadoop 2.x. Does the current UserGroupInformation lose credentials in a child thread?

Here is the simple experiment I used to demonstrate the problem, written in scala, with Hadoop 2.7.7 as the only dependency: import org.apache.hadoop.security.UserGroupInformation import scala.concurrent.duration.{Duration, MINUTES} import…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
1 answer

Add user to group without restart in DEB postinstall

In my deb-package I add user to 'dialout' group in the postinst script: usermod -aG dialout $SUDO_USER And I want the new settings to be applied without rebooting: newgrp dialout But there is the trouble: newgrp logs in user to new session, so we…
Michael Galuza
  • 386
  • 6
  • 16
0
votes
1 answer

How to get a specific part of a group from a list of users of specific OU and put it into table?

As title says I need to get a specific part of a group name of group of users. Yup, Get-ADPrincipalGroupMembership allows to get user's groups. But it returns all user's groups (while I would like to get an exact one) and, as I understood, only for…
0
votes
1 answer

Azure Function App using python: How to access user groups for authorization

I am very new to Azure Function Apps and OAuth so please bear with me. My Setup I have an Azure Function App with a simple python-function doing nothing else but printing out the request headers: import logging import azure.functions as func def…
0
votes
1 answer

Display users without a group in a template Django

I am creating an app that allows me to edit users on the frontend. Before doing this I wish to have all the users listed in a page. They are categorized by their group. Users that are in a group show up how they are supposed to. I want to also…
icxrus
  • 13
  • 3
0
votes
1 answer

Nextcloud, adding user as a admin group by occ command

I am trying to write a script to manage users and grant privileges to a group administrator. I saw in the occ group commands that you can create groups and manipulate users on a group. But I have not seen any command to add a group admin.
Matheo
  • 5
  • 1
  • 6
0
votes
1 answer

adding group with usergroup in Debian 10 doesn't seem to work

I'm trying to add a user to a group but it doesn't seem to work: sudo usermod -a -G wireshark nicolas But when I check my id, I get uid=1000(nicolas) gid=1000(nicolas)…
Nicolas
  • 3
  • 1
  • 2
0
votes
2 answers

Creating PowerShell Script templates for easy group management

First of all thanks for the help to the other users, because of that I learned a lot. I have a problem that there are lots of user templates in my company (Lots of different group settings depending operation). Because of that I want to make it easy…
0
votes
1 answer

Unable to add user to group with usermod

I needed to create a group named support to manage access to some scripts that should be run as sudo, so I created a group and verified that the group existed in /etc/group: # groupadd support # cat /etc/group | grep support support:x:1002: Then,…
dorinand
  • 1,397
  • 1
  • 24
  • 49
0
votes
1 answer

TypeError: create_user() missing 1 required positional argument: 'group'

Everything worked fine, until I dropped the database and run the migrations again. Now, I'm not able to create superuser again. The error I got is: TypeError: create_user() missing 1 required positional argument: 'group' I create superuser from:…
user13922709
0
votes
1 answer

Group object has no attribute user_set

I'm using a custom User created with AbstractBaseUser and I tried to add users to a specific group using the django admin. But there were no option to add users to a group. So I found a solution from the stack overflow and It gave me the capability…
0
votes
0 answers

AWS Cognito for Slack Clone

I'm not actually trying to clone slack, it's just an analogy I'm trying to understand how to manage users who have their own account context but can also have a one-to-many context with organizations. Since I'll have more than 25 organizations user…
Schalton
  • 2,867
  • 2
  • 32
  • 44
0
votes
1 answer

How to create a unique code to invite new users to a group in a mobile app

I am building a mobile app with flutter and firebase. I want to generate a unique id, es "453562" every time a new group of users is created, so new users will be invited to the group and can only access it through this code.
LateBoy
  • 99
  • 2
  • 9
0
votes
1 answer

Django filter foreign key relationships by user group

I'm trying to filter activities in a task (list of activities) by the assigned user group. TaskActivityModel.objects.filter(activity__workCenter=request.user.groups) this gives me a TypeError: Field 'id' expected a number when I amend the filter…