The l4t_create_default_user.sh script provided in Jetson_Linux_R36.3.0_aarch64.tbz2 has an issue with the addgroup calls in the create_user function on Ubuntu 24.04.
The script fails complaining addgroup: addgroup with two arguments is an unspecified operation. Additionally it does not allow adding a group to a group. The user is being added to groups video and gdm or lightdm depending on which if statement is executed.
This error causes the rest of the code in the create_user function to not execute and if the user specified a hostname, that function is not called.
Current code:
if [ -e "etc/gdm3/custom.conf" ]; then
LC_ALL=C chroot . addgroup "${user_name}" "gdm"
LC_ALL=C chroot . addgroup "gdm" "video"
fi
if [ -e "lib/systemd/system/lightdm.service" ]; then
LC_ALL=C chroot . addgroup "${user_name}" "lightdm"
LC_ALL=C chroot . addgroup "lightdm" "video"
fi
Corrected code:
if [ -e "etc/gdm3/custom.conf" ]; then
LC_ALL=C chroot . usermod -aG "${user_name}" "gdm"
fi
if [ -e "lib/systemd/system/lightdm.service" ]; then
LC_ALL=C chroot . usermod -aG "${user_name}" "lightdm"
fi