L4t_create_default_user.sh

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

You have a Jetson developer kit and a separate Linux (Ubuntu 22.04 or Ubuntu 20.04) host system.

Refer the link

https://docs.nvidia.com/jetson/archives/r36.4/DeveloperGuide/IN/QuickStart.html

1 Like

Hi,
Please check if you can have a host PC in Ubuntu 20.04 or 22.04. Thanks.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.