Figure 1. Auto Login
To align with upstream Yocto, auto login configuration is removed from the 2023.1 release.
By default, PetaLinux users have sudo access. You can use petalinux-config -c rootfs -> Image features -> serial_autologin_root to achieve the same.