chlebik/rhcsa-practice-questions

001_restore_root_password.md - use .autorelabel in order to handle selinux when re-rooting box

jayhowell opened this issue · 2 comments

Instead of having to do...

In order to finish the task SELinux must be taken care of. If not, contents of /etc/shadow will be messed up. 
There are two commands to be provided:
 load_policy -i 
 chcon -t shadow_t /etc/shadow

You can just do
touch /.autorelabel
After you set the password.

And then reboot. That will take care of relabeling for selinux.

Ah I see that Billy had already fixed this in his pull request. 57816db

Merged and fixed