设置root默认密码 sudo passwd
bash
#sudo passwd设置默认密码,再填写两次密码
sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
#切换到root用户
su root
设置默认用户登录:
ubuntu config --default-user root
debian config --default-user root