Questions tagged [usermod]
The usermod tag has no summary.
34 questions
0 votes
1 answer
99 views
usermod and groupmod inconsistency for removing multiple users/groups
I don't understand why usermod has a -r option that can be used in combination with -G to remove groups that the user belongs to, but groupmod doesn't have an option to remove multiple users from a ...
0 votes
0 answers
742 views
Change user ID of user in Linux, but don't touch the files in the home directory
I want to change the user ID of www-data, but not touch the files in the home directory. usermod man page: -u, --uid UID The new numerical value of the user's ID. This value must be ...
-1 votes
1 answer
491 views
Kali Linux freezes after I log in, but not if I log into root first and then switch user
I recently changed the default kali username and password via following a tutorial that used usermod commands. However, after logging back into the newly named account, the screen freezes on the ...
11 votes
6 answers
13k views
Completely lock user account on server, including ssh
I need to lock some user accounts, without messing with their HOME, if at all possible. Normal way would be usermod -L user but it seems to leave open ssh login with public key authentication (...
1 vote
2 answers
6k views
username is currently used by process
I am trying to change the home directory of a user. using usermod ravishshankar --home /var/www/domainname/public_html/ but get usermod: user username is currently used by process 1378 I try to kill ...
-4 votes
3 answers
13k views
Trying to change kali username, user is currently used by process
On a VMware Workstation Player VM, I have been trying to change my default user account name "kali". The command I tried was usermod -l newname kali. But it gives me the error usermod: user ...
0 votes
1 answer
5k views
Give a user admin right to run yum on centos 8
I give a user admin access with: usermod -a -G wheel userX but when I log in with userX, I am not able to run yum. What do I need to do? Thanks
0 votes
0 answers
70 views
Not being able to edit user's info in linux
I have managed to write this code. It runs, but no change was made to the user's info. It seems like usermod isn't working. What I am wanting to do is, to be able to edit existing user's info in the ...