How to disable or lock root user in ubuntu

FREQUENTLY ASKED QUESTIONS (Ubuntu)
Q: How to disable root user in ubuntu linux?

To disable root user account in ubuntu linux operating systems.
Run the below command


user@ubuntu:~$ sudo passwd -l root
passwd: password expiry information changed.


To unlock root user account:
user@ubuntu:~$ sudo passwd -u root
passwd: password expiry information changed.

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons