码迷,mamicode.com
首页 > 系统相关 > 详细

linux新安装后root密码设置

时间:2018-10-04 14:32:33      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:type   one   过程   root   密码   用户   new   root密码   解决   

linux在安装过程中未设置root密码

导致在使用中无法su

解决方法是设置root密码:

输入:

sudo passwd root

[sudo] password for you: ---> 输入你的密码(你现在这个用户的密码)

Enter new UNIX password: ---> 设置root 密码

Retype new UNIX password: ---> 重复密码

 done

linux新安装后root密码设置

标签:type   one   过程   root   密码   用户   new   root密码   解决   

原文地址:https://www.cnblogs.com/zxingwork/p/9742149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!