How To Disable Root Account 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 Linux system as the root user.
2. Open a terminal window and type in the following command: passwd -l root
3. Press enter and your root account will be disabled.
4. To ensure that the root account has been successfully disabled, type in the following command: passwd -S root
5. If the output of this command is ‘LK’, then the root account has been successfully disabled.