小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 允许 su 到 root
非常简单,只需要重新设置下密码即可。下面是设置的方法:
1 me@ubuntu:~$ sudo passwd
2 密码:<--- 输入安装时那个用户的密码
3 输入新的 UNIX 密码:<--- 新的Root用户密码
4 重新输入新的 UNIX 密码:<--- 重复新的Root用户密码
5 passwd:已成功更新密码
6 me@ubuntu:~$ su
7 密码:<--输入重置的新密码
8 root@ubuntu:/home/me# #已经进入root用户