Skip to content

passwords

Reset root password when you forget it

# On OS Selection Screen press "CTRL+e"
# Navigate to the line starting with "linux" and press "CTRL+e" to edit the end of the line adding rc.break to it
# Press "CTRL+X" to enter a shell
mount -o remount,rw /sysroot
chroot /sysroot
#echo 'root:Password1 | chpasswd'
passwd
touch /.autorelabel
exit 
exit
logout

Setting Password Settings

# Validity
chage # For single user, look up man page
# EDIT /etc/login.defs

# Set starting UID for new users
# Edit /etc/default/useradd

# Change default UID for new accounts using `useradd`
# EDIT /etc/login.defs