After running the script sudo ./l4t_create_default_user.sh -a -u nvidia -p nvidia1234 inside the Linux_for_Tegra folder and flashing the board
logging in works but. It looks like it change most (not all) file on the system to be owned by the newly added user and by doing so it breaks most of the system and permissions
sudo apt update
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
ping: socket: Operation not permitted.
Please suggest on this