Answers for "change user linux"

4

linux change username

# login as root and make sure that there are no active processes for user
usermod -l NEW_USERNAME OLD_USERNAME
# if user is running kill user w the following command
userUID=$(id -u OLD_USERNAME) && pkill -U $userUID
Posted by: Guest on May-05-2020
7

change user linux

sudo su - username
Posted by: Guest on April-07-2020
1

linux switch user

$ whoami
user1
$ su - user2
Password:
$ whoami
user2
$ exit
logout
Posted by: Guest on March-11-2021
6

change linux user password

#if you dont't have your root password => then don't use sudo command

# passwd <username>
Current password:
New password:
Retype new password:
passwd: password updated successfully
Posted by: Guest on May-29-2020

Code answers related to "change user linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language