How To Change User In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Log out of the current user account and log in as root using the “su” command.
2. Type in “useradd <newuser>” to create a new user account.
3. Type in “passwd <newuser>” to set a password for the new user.
4. Type in “usermod -a -G <groupname> <newuser>” to add the new user to any additional groups that may be necessary.
5. Log out of the root account and log in as the new user.