Correct
1. reboot your server. assume that you don't know the root password, and use the appropriate
mode to enter a root shell that doesn't require password. Set the root password to mypassword.
1. in the boot loader menu:
press e
2.at the end of the line begging with the Linux, at the end of this line, append the following:
init=/bin/sh
3.press ctrl-x
4.load the installed SELinux policy:
/usr/sbin/load_policy -i
5-execute the following command you root partition:
mount -o remount,rw /
6-reset the root password:
passwd root
7-remount the root partition:
mount -o remount,ro /
8-press ctrl-d
, Rhcsa 8 Final Questions With Solutions 100%
Correct
2. change runlevel? step1: check a default runlevel system configuration:
systemctl get-default
step2:set default runlevel target unit to multi-user:
systemctl set-default multi-user.target
step2:set default runlevel target unit to graphical:
systemctl set-default graphical.target
step4:reboot
or if you want to change runlevel without restarting:
systemctl isolate multi-user
3. set default values for new users. set default password validity to 90 days, and set the first UID
that is used for new users to 2000. vi /etc/login.defs
change the following values:
PASS_MAX_DAYS 90
UID_MIN 2000