How To Login As Root 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.
Method 1: Logging in as Root from the Command Line
1. Log in to your system as a regular user.
2. Open a terminal window.
3. Type the command su – and press Enter.
4. Enter the root user password when prompted.
5. You should now have a # prompt, indicating that you are logged in as the root user.
Method 2: Enabling the Root User and Logging In Graphically
1. Log in to your system as a regular user.
2. Open the Terminal application.
3. Enter the command sudo passwd root and press Enter.
4. Enter your regular user’s password when prompted.
5. Enter a new UNIX password for the root user twice.
6. Log out of your current user’s session and log in as the root user.
7. Once you are logged in as the root user, a graphical environment should appear.