password - Setting root back to default status - Ask Ubuntu


based on ubuntu online documentation, administrative root account disabled default giving password matches no possible encrypted value.

i mistakenly gave root account password , place disabled state. i've used following command:

sudo usermod -e 1 root 

is right way wanted do?

(note don't want lock root account, if i'm not mistaken, be: sudo passwd -l root).

technically no. have done mark account expired, still has same password. passwd -l modifies password hash prefixing with, iirc, exclamation point. prevents password matching hash, exclamation point can removed unlock account , restore previous password.

either method has effect of preventing logging in root, practically speaking, good.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User