How To Switch To The Root 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 in to your user account with administrative privileges.
2. Open a Terminal window and type: sudo -s
3. Enter the password for your user; this will give you a root shell.
4. If you want to switch to a different user, use the su command, followed by the username of the user you want to switch to. For example, to switch to the root user, type: su – root
5. You will then be prompted to enter the root user’s password. Once you have done so, you will be logged in as the root user.