Questions tagged [usermod]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
124 views

Difference between expired account and inactive account

After a command like: $ usermod -e <yesterday> -f <tomorrow> bea Bea's account will be expired, but still active (until tomorrow). What's the difference? What could happen yesterday ...
1
vote
1answer
72 views

chgrp chown usermod are useless if not root?

I am logged under 'achille' achille belongs to 2 groups: groups achille achille: achille users I want to change the group owner of file 'tree.test' to group 'users' ls -l tree.test -rw-r--r--. ...
0
votes
1answer
56 views

useradd account cant login through GUI

I'm using KALI fresh install. Linux kali 5.2.0-kali2-686-pae #1 SMP Debian 5.2.9-2kali1 (2019-08-22) i686 GNU/Linux I created a user using useradd akkilah Then i added this user to sudo group ...
0
votes
1answer
49 views

single user, once with once without sudo

I have added a new user on my ubuntu machine with the following command: sudo adduser test and then granted him sudo with: sudo usermod -aG sudo test So far everything seems pretty standard. The ...
0
votes
0answers
44 views

How can i duplicate a user including all the configurations and settings to a new username?

I already have root access since the computer is my personal property. It runs a recent version of a major Linux distribution. I want to create a new user that is an identical copy of an existing ...
-2
votes
1answer
37 views

Sudoers permissions to new user that only allow “useradd and usermod”

I want to create a new user and I want this user to be allowed to only run "useradd" and "usermod" Will I need to configure the sudoers file? Not sure how to go about this.
1
vote
0answers
14 views

unable to boot directly to desktop environment

I tried to change a user's login name with usermod --login krypton maddybut now everytime I reboot my pc, it doesn't directly shows the desktop environment and I need to do Ctrl+Alt+F2 and then startx ...
1
vote
1answer
336 views

command to add multiple “secondary groups” for a user in Solaris

I am trying to add 2 secondary groups for a user is Solaris system, but not able to do so. It only adds 1 secondary groups. I've done enough R&D, not sure what to do. Below command I am using : ...
2
votes
1answer
192 views

Cannot su into root default shell - Debian

I am using a Debian 9 server. Usually I access via ssh to a normal user (say user1) and su into root, because I disabled ssh into root. Lately I was setting up a git-server where I created a user git ...
0
votes
0answers
183 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
347 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
39 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
546 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
555 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
289 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
41 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
63 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
57 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
63 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 ...
3
votes
1answer
806 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'...