Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [usermod]

The tag has no usage guidance.

0
votes
0answers
37 views

unable to add user to group fedora 29

I used groupadd to add a group so that I could manage with git some root owned scripts. I then used usermod to add a user to a group. The user is the currently logged in standard user and I am in a ...
1
vote
0answers
106 views

Unable to add user to a group due to sssd?

I'm working on Fedora 29 x86_64 fully patched. I'm trying to add my user to the dialout group so I can open the modem: $ ls -Al /dev/ttyUSB0 crw-rw----. 1 root dialout 188, 0 Feb 22 19:27 /dev/...
2
votes
1answer
28 views

Solaris 5.10 shell replacement for Centos 7 migration

I have an old Solaris 5.10 server. I'm migrating the tomcat products to Centos 7. There are two accounts on the Solaris server that I need to migrate. The shells for both of those accounts are ...
1
vote
1answer
162 views

usermod command not working on solaris

I am trying to add one more group in already added supplementary groups for a user. rcc is the name of the supplementary group I need to add sm254040 is the user id. when I run the command usermod -...
1
vote
0answers
120 views

whoami returns user, but usermod complains it doesn't exist

I have Linux (Ubuntu) on a VM provided by corporate IT in my organization, and I have a user "myuser". whoami is able to return the username: myuser@host:/home/myuser$ whoami myuser id returns info ...
0
votes
1answer
61 views

non-root user set group ownership

The official Red Hat System Administration I RH124 says: root can grant ownership to any group, while non-root users can grant ownership only to groups they belong to [student@web ~]$ id ...
1
vote
0answers
15 views

Automated logout of present session to refresh group commands?

So, I'm looking at automating a setup of service instances with AWS. AWS allows you to run shell scripts on instance creation. However! I've run into one little snag. I want, on initial ssh into the ...
0
votes
0answers
40 views

Why does usermod default to overwriting secondary groups?

As anyone who has used usermod to add a user to a group knows, invariably a mistake will be made (probably once in a career and not again) in which -a is forgotten and the secondary groups are ...
1
vote
3answers
49 views

linux + how to verify user is in group? [duplicate]

how to verify that new user was added to group? example by this syntax I will add the user dog to group - white_house_group usermod -a -G white_house_group dog after that , how to verify that ...
2
votes
1answer
56 views

ID results different depending on who asks

I have userX who has realtime privileges thorugh the realtime group. I wanted to give that user admin privileges so I switched to root ~>su root and ran #>usermod -a -G root userX After a ...
4
votes
1answer
567 views

Reserving a range of anonymous UIDs; /etc/subuid

I need a range of uids (say a few thousand) for a setuid-root tool to use. Is there a protocol to registering such a range or do I just pick a range and hope no other program will use those uids? (I'...