Ubuntu Forums Archive Viewer

Rerandomizing the Root Password (READ POST BEFORE REPORTING PLEASE)

Archived thread 1008759 from Security. Markdown source: Security/thread_1008759_Rerandomizing_the_Root_Password_(READ_POST_BEFORE_.md

Original URL About this archive
#1

Hello Everyone,

I installed ubuntu last week, and due to my inexperience immediately created a password for root that I knew. I was wonder is there any way to rerandomize the password now that I know about sudo and its various applications?

#2

You can lock the account again by doing,

sudo passwd -l root
#3

Actually , there is a small bug.

You should use:

sudo usermod --lock root

https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/238755