Questions tagged [user-groups]

95 questions
81
votes
3 answers

How to list the users and groups of an AD Security Group when not a domain admin

I am on Windows 8 connected to domain. I wish to view the users and groups of an AD Security group. I am not the owner of the group. The command: net group /domain TheGroupName shows the direct users of that group but does not show the groups…
crokusek
  • 1,052
73
votes
1 answer

How can I find out which user groups my domain user belongs to?

Running Windows 7 on my work PC, how can I check which groups I am a part of on the domain from my PC? I know how to check the local groups using MMC (Microsoft Management Console), just not the groups managed on the domain. I do not have remote…
codewario
  • 942
53
votes
1 answer

chown - Operation not permitted

I'm logged in as minime. I don't understand why it doesn't allow me to chown file that I own without su privileges. Obviously I can use sudo, but I'd like to understand why? because of www-data group? chown minime:www-data user-functions.php ls…
user98645
34
votes
1 answer

usermod equivalent for Alpine Linux

I'm building a Docker container, and I need to add my user to a group. usermod is not available in Alpine Linux by default. Apparently, you can add shadow from apk to install usermod, but I would prefer to not install additional packages. Is there…
Zak
  • 441
23
votes
5 answers

How to arbitrarily map user/group ownerships in rsync

I need to rsync a directory to a remote server so that all files belonging to user X and group Y on the source (local) machine are mapped to user W and group Z on the destination (remote) machine. If possible by using ssh as the transport, but if I…
matteo
  • 4,559
18
votes
2 answers

Why do `groups` and `groups $USER` give different results?

I want to add myself to the "docker" group. These are the commands I ran, and their output: user1@laptop-p3510:~$ sudo usermod -a -G docker user1 user1@laptop-p3510:~$ groups user1 adm cdrom sudo dip plugdev lpadmin lxd…
Grollo
  • 283
15
votes
3 answers

groupadd: command not found

Cannot create a group in RHEL5. I get error groupadd: command not found.
tismon
8
votes
1 answer

Do the psaserv and psacln groups have particular meanings?

I'm not well versed in server admin stuff, but I notice the user groups psaserv and psacli psacln come up all the time on different systems. I assume these group names are commonly used for a particular purpose/role. Is that true? Like what?
6
votes
1 answer

usermod returns "group 'thegroupname' does not exist" for known group

As a member of sudo can I add myself to a group I don't belong to? $ getent group thegroupname thegroupname:x:123794798:administrator,users,auser,moreusers,manymoreusers $ sudo usermod -a -G thegroupname myusername usermod: group 'thegroupname'…
Louis Waweru
  • 25,409
  • 45
  • 137
  • 203
6
votes
2 answers

CentOS: View all users in a specific group

I added a user user01 to a group group01 using: usermod -a -G group01 user01 When I run in command id user01 it shows that this user has actually been added to the group. However, the file /etc/group doesn't reflect this. i.e. I believe that on this…
thilina R
  • 2,973
  • 5
  • 28
  • 36
6
votes
0 answers

Does a process with CAP_SETUID and CAP_SETGID can always gain full root privileges?

If I have an executable file with CAP_SETUID and CAP_SETGID set inside xattrs file’s attributes. Will I get full root privileges if such executable call setuid();setreuid();setresuid();setfsuid() with the value 0 ? Or will I only be identified as…
user2284570
  • 2,020
5
votes
1 answer

NFS Directory Group permissions not working

For some reason the users that are part of a particular group (with that group have rwx on an NFS directory) cannot cd in to that directory. I am at a loss here, there has to be something I am missing. Both client and server are Debian 11 servers On…
user1239807
5
votes
1 answer

Why my linux account only belongs to one group?

I am currently using Ubuntu 18.04, and my username is abcxyz (not real, changed for the matter of the question). If I look at the contents of /etc/groups, my user appears in many groups: $ cat /etc/group | grep…
elxordi
  • 153
  • 1
  • 5
4
votes
1 answer

NixOS & NixOps declarative group management and services

Is it possible to manage groups in a declarative way in NixOS and NixOps? I would like to be able to create a new group in a configuration.nix, and add users to it. I have not been able to find any options available to do this, and am having issues…
3
votes
1 answer

What do '!', '*', and 'x' mean in getent group?

When I run getent group, I notice that some groups have *, some have ! and some have x after the group name. In fact, there are some groups which have the same name, the only difference is that one has x and the other has ! and an extra user. What…
drjrm3
  • 1,556
1
2 3 4 5 6 7