To the newly installed Ubuntu18.04 set the root password

lichengbei

2019-12-21

Ubuntu initial installation not to the root user to set a password, use the su command to switch to root throws su: Authentication failure abnormality.

 

The solution is to give root to set an initial password for the user , as follows:

lichengbei@ubuntu1804:~$ sudo passwd root

[sudo] password for lichengbei: {1234.qwer}

Enter new UNIX password: {1234.qwer}

Retype new UNIX password: {1234.qwer}

passwd: password updated successfully

lichengbei @ ubuntu1804: ~ $ su

Password: {1234.qwer}

root@ubuntu1804:~#

 

Explain, before typing a command line prompt $ representative of the average user, # represents the root user , exit command can exit the root and return to ordinary users.

Guess you like

Origin www.cnblogs.com/lichengbei/p/12079185.html