最新消息:因从typecho切换到wordpress, 由于转换导入问题,文章可能存在部分乱码或者排版问题,逐个排查修复中...

[Ubuntu] How to change root password in Ubuntu

技术转载 admin 887浏览

How to change root password in Ubuntu
The procedure to change the root user password on Ubuntu Linux:

Type the following command to become root user and issue passwd:

sudo -i
passwd

OR set a password for root user in a single go:

sudo passwd root

Test it your root password by typing the following command:

su -

How to disable your root account on Ubuntu
One can disable the root account by typing the following command:

$ sudo passwd -dl root

OR

$ sudo passwd --delete --lock root

Ref:
https://www.cyberciti.biz/faq/change-root-password-ubuntu-linux/

I am lazy, so just refer to a document from internet.

转载请注明:Linc Hu » [Ubuntu] How to change root password in Ubuntu