Pages

How To Disable Root Account In Ubuntu/Linux

By default, a lot of Linux distributions disable the Root account (including Ubuntu). And the password for Root is generated automatically (using hash algorithms) while you install it on your HDD. So, unless you change the Root password manually, the Root will be deactivated by default.

Although there are both good and bad things about root privileges in Linux, yet, it is recommended to disable the Root account unless you really need it and whenever you need to act as an administrator, then use the "sudo" command instead. So, in that sense, if you want to know how to disable it, it can be done pretty easily via the Terminal.

Open your Terminal and issue the below command...

sudo usermod -p '!' root
 

No comments:

Post a Comment