In ubuntu by default the su (root) password is not not set. I have set it by using the sudo passwd (see link). But I didn't like it. Can I go back to my original state.

up vote 2 down vote accepted

The root account in Ubuntu is defaultly disabled. When you enabled the root account (set a password for it) then you can disble it easy by the following command:

sudo passwd -dl root
  • -d means to delete the password (make it empty)
  • -l means lock the password of the account

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.