说明:
Ubuntu在安装过程中没有提示设置root密码,而且必须创建一个普通账号安装才能继续。
下面教大家在Ubuntu中启用root账号并设置密码
系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接
以普通账号登录系统
sudo passwd root #启用root账号并设置密码,根据提示输入2次密码
su root #从普通用户切换到root用户,根据提示输入root密码
sudo passwd -l root #禁用root账号,如果要启用,输入sudo passwd root再次设置root密码

» 转载请注明来源:系统运维 » Ubuntu设置root密码


