安装完ubuntu server 9.04后,通过设置的账户来设置root密码

本文介绍如何在Ubuntu Server 9.04中设置固定的root密码,避免每次开机密码随机变化的问题。通过使用sudo passwd root命令,可以为root用户设置一个稳定的密码。

安装完ubuntu server 9.04后,通过设置的账户来设置root密码:

 

sudo passwd root

 

 

Ubuntu下每次开机root管理员的密码都会随机变(据说),所以要从普通用户来操作,方法如下:

If you got the message like this:

$ su - root
Password:
su: Authentication failure
Sorry.


Then you can input the command:
sudo passwd root
open the root user and input the passwd:

$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully


so that you can su -root

Want to close the root user in the ubuntu, run the command:
sudo passwd root -l

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值