--Enter edit mode on the GRUB2 startup screen
Press e on the kernel selection screen to enter edit mode
![cent のクローン [実行中] - Oracle VM VirtualBox 2020-10-23.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/129517/d7a998ff-1588-10b1-0028-17de7f5f9329.png)
--Make changes in edit mode
Delete the rhgb quiet LANG = ja_JP.UTF-8 on the line starting with linux16
![1cent のクローン [実行中] - Oracle VM VirtualBox 2020-10-23.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/129517/97738df4-c9ca-676d-b69d-72e534998078.png)
--Add to the deleted place
Add rw init = / bin / sh to the deleted location.
After adding it, start it with Ctrl + x.
![2cent のクローン [実行中] - Oracle VM VirtualBox 2020-10-23.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/129517/661acc45-ceb3-735c-a21a-04d91c19ab54.png)
--Change to new password
When the console starts, change the root password using the following command.
# passwd
I'm angry here that the password is less than 7 characters, but I was able to change it.
If you can change the password, start it as follows.
# exec /sbin/init
![3cent のクローン [実行中] - Oracle VM VirtualBox 2020-10-23.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/129517/90cae958-a4f4-3e28-3ea8-7935fa168961.png)
--Login
After booting, log in with the new root password.
![4cent のクローン [実行中] - Oracle VM VirtualBox 2020-10-23.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/129517/37d19cfa-1ace-b30a-81e6-184e67bc07c6.png)
-How to change root user password in CentOS7 [Old single user mode]
Recommended Posts