Enable / Disable root user in Ubuntu
December 10, 2018
code
# set password for root
sudo passwd root
# enable root
sudo passwd -u root
# disable root
sudo passwd -dl root
-uunlocks the password of the named account (in this caseroot)-ddeletes and-llocks the password