How to change user login name in Linux
Ensure you have shadow-utils package installed
yum install -y shadow-utils
Then run the following command to change an existing login name “olduser” to “newuser”.
usermod -n newuser olduser
Ensure you have shadow-utils package installed
yum install -y shadow-utils
Then run the following command to change an existing login name “olduser” to “newuser”.
usermod -n newuser olduser