0

I was reading about changing root password in CentOS 7. it's totally different from centOS 6.

change root password

I was wondering about the steps for example why should I change ro? what exactly happens in every step?

1 Answers1

1

ro option means read-only, so changing to rw init=/sysroot/bin/sh in kernel-image will open a shell and now your file-system is mounted with read and write.

Now chroot /sysroot means that /sysroot directory will appear as /. For more info regarding this read this answer https://unix.stackexchange.com/a/413790/255251.

Prvt_Yadav
  • 5,882