translated

This commit is contained in:
su-kaiyao 2014-09-28 15:20:02 +08:00
parent 06bc4ae536
commit 01676f66bb
2 changed files with 52 additions and 53 deletions

View File

@ -1,53 +0,0 @@
[su-kaiyao]翻译中
How To Reset Root Password On CentOS 7
================================================================================
The way to reset the root password on centos7 is totally different to Centos 6. Let me show you how to reset root password in CentOS 7.
1 In the boot grub menu select option to edit.
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_003.png)
2 Select Option to edit (e).
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_005.png)
3 Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh.
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_006.png)
4 Now press Control+x to start on single user mode.
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_007.png)
5 Now access the system with this command.
chroot /sysroot
6 Reset the password.
passwd root
7 Update selinux information
touch /.autorelabel
8 Exit chroot
exit
9 Reboot your system
reboot
Thats it. Enjoy.
--------------------------------------------------------------------------------
via: http://www.unixmen.com/reset-root-password-centos-7/
作者M.el Khamlichi
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,52 @@
如何重置CentOS 7的Root密码
===
重置Centos 7 Root密码的方式和Centos 6完全不同。让我来展示一下到底如何操作。
1 - 在启动grub菜单选择编辑选项启动
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_003.png)
2 - 按键盘e键来进入编辑界面
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_005.png)
3 - 找到Linux 16的那一行将ro改为rw init=/sysroot/bin/
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_006.png)
4 - 现在按下 Control+x ,使用单用户模式启动
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/09/Selection_007.png)
5 - 现在,可以使用下面的命令访问系统
chroot /sysroot
6 - 重置密码
passwd root
7 - 更新系统信息
touch /.autorelabel
8 - 退出chroot
exit
9 - 重启你的系统
reboot
就是这样!
---
via: http://www.unixmen.com/reset-root-password-centos-7/
作者M.el Khamlichi
译者:[su-kaiyao](https://github.com/su-kaiyao)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出