How to set root password in ubuntu

Select recovery mode while booting

Scroll Down the recovery menu -> Select root(Drop to root shell prompt)

Ubuntu shell appears

~@ubuntu:~# passwd root

It prompts for password

Enter new UNIX password :

To reboot use the command sudo reboot

To shutdown use the command sudo shutdown -h 0

About Monish Mohan

Software Engineer, baabte System Technologies Pvt Ltd.