Fix SSH root login requiring password change

- Enhanced root password configuration for installed system
- Added comprehensive password aging settings to prevent expiration
- Unlock account and remove all password expiration requirements
- Set maximum password age to never expire
- Remove minimum password age restrictions
- Ensure immediate SSH login capability without password change prompt
parent cfca9af0
...@@ -550,6 +550,9 @@ configure_target_system() { ...@@ -550,6 +550,9 @@ configure_target_system() {
print_status "Ensuring root account is active and password is not expired..." print_status "Ensuring root account is active and password is not expired..."
chroot "$TARGET_MOUNT" passwd -u root 2>/dev/null || true # Unlock account chroot "$TARGET_MOUNT" passwd -u root 2>/dev/null || true # Unlock account
chroot "$TARGET_MOUNT" chage -d 99999 root 2>/dev/null || true # Remove expiration chroot "$TARGET_MOUNT" chage -d 99999 root 2>/dev/null || true # Remove expiration
chroot "$TARGET_MOUNT" chage -E -1 root 2>/dev/null || true # Remove account expiration
chroot "$TARGET_MOUNT" chage -m 0 root 2>/dev/null || true # Remove minimum password age
chroot "$TARGET_MOUNT" chage -M 99999 root 2>/dev/null || true # Set maximum password age to never expire
fi fi
# Create mbetterclient user with no password for autologin # Create mbetterclient user with no password for autologin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment