Open main menu

CDOT Wiki β

Changes

OPS245 Lab 3

1 byte removed, 15:04, 8 February 2021
m
Part 3: Resetting Forgotten Root Password
#The system should boot into text-based mode without prompting for root's password.
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">chroot /sysroot</span></code></b><br>
#Issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">passwd root</span></code></b> in order to change your root password (press '''ctrl-c''' if you wish to abort - i.e. not change password).<br>'''NOTE:''' if you are using SELinux in '''enforcing''' mode, you will also need to issue the command: '''touch /.autorelabel'''. This may take some time depending on the amount of files you have on the file system (usually about 2 minutes).
#To restart in graphical mode, simply enter the command <b><code><span style="color:#3366CC;font-size:1.2em;">exit</span></code></b>, then <b><code><span style="color:#3366CC;font-size:1.2em;">reboot</span></code></b>.
572
edits