Creating username/password with l4t_create_default_user.sh does not provide the user with root/sudo privledges

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
Jetpack 5.1.1

Target Operating System
Linux, Ubuntu 20.04

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version
1.9.1.10888 x86_64

Host Machine Version
native Ubuntu 20.04

Was unable to flash (re-flash) correctly using the SDKM alone, the flash appeared successful, but on first boot would not “install” ubuntu/create username/password and would just sit on the traditional Ubuntu install GUI screen where nothing really works from the menus. (see separate thread Reflash of Jetson AGX to upgrade ubuntu version, unable to "install SDK componenets on your ... Module" - #19 by WayneWWW)

So as a work around created a username/password with the image on the host machine

(base) me@me-ZenBook:/nvidia/nvidia-sdk/JetPack_5.1.1_Linux_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra/tools$ sudo ./l4t_create_default_user.sh -u AGXme -p AGXme -n agx-nvidia
Creating: Username - AGXme, Password - AGXme, Autologin - false
Adding user `AGXme' to group `gdm' ...
Adding user AGXme to group gdm
Done.
Adding user `gdm' to group `video' ...
Adding user gdm to group video
Done.
Creating: Hostname - agx-nvidia

but I now have no sudo/root access when I try I receive this error:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set 

either on the terminal, ssh, or even from within the SDKM (installing SDK components after the flash)

when I run this
ls -l /usr/bin/sudo

I get these permissions
-rwxrwxrwx 1 root root 157632 Jan 16 13:06 /usr/bin/sudo

terminal errors from the SDKM


07:36:02 ERROR: Failed to use 'Automatic setup'. Please try again or change to 'Manual Setup' to continue. If the device already in recovery mode, please change to 'Manual setup' to continue.
07:36:21 ERROR: Default ip is not avaliable. Please make sure the default ip is shown in ip addr, or use a customer ip instead.
07:36:39 ERROR: Detected selected device is not in recovery mode. Please 1. double check if correct target device has been selected. 2. if does, follow the upper instruction to set the device in to recovery mode and then continue. Or change to 'Automatic Setup' to continue.
07:37:28 ERROR: Flash Jetson Linux - flash: Board ID(2888) FAB(400) sku(0004) revision(L.0)
07:37:29 ERROR: Flash Jetson Linux - flash: 39726 blocks
07:37:29 ERROR: Flash Jetson Linux - flash: gzip: /data/Programs/nvidia/nvidia-sdk/JetPack_5.1.1_Linux_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra/kernel/Image: not in gzip format
07:37:34 ERROR: Flash Jetson Linux - flash: 56174 blocks
07:37:34 ERROR: Flash Jetson Linux - flash: 20+0 records in
07:37:34 ERROR: Flash Jetson Linux - flash: 20+0 records out
07:37:34 ERROR: Flash Jetson Linux - flash: 20 bytes copied, 0.000311522 s, 64.2 kB/s
07:40:54 ERROR: Flash Jetson Linux - flash: 131072+0 records in
07:40:54 ERROR: Flash Jetson Linux - flash: 131072+0 records out
07:40:54 ERROR: Flash Jetson Linux - flash: 67108864 bytes (67 MB, 64 MiB) copied, 1.93743 s, 34.6 MB/s
07:53:27 SUMMARY: Flash Jetson Linux - flash: Install completed successfully.
07:54:05 ERROR: Connection to 192.168.55.1 22 port [tcp/ssh] succeeded!
07:54:10 ERROR: command terminated with error
07:54:11 ERROR: command terminated with error
07:54:11 ERROR: command terminated with error
07:54:12 ERROR: command terminated with error
07:54:13 ERROR: command terminated with error
07:54:13 ERROR: command terminated with error
07:54:14 ERROR: command terminated with error
07:54:15 ERROR: command terminated with error
07:54:15 ERROR: command terminated with error
07:54:17 ERROR: command terminated with error
07:54:20 ERROR: command terminated with error
07:54:20 ERROR: command terminated with error
07:54:21 ERROR: command terminated with error
07:54:22 ERROR: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
07:54:23 SUMMARY: DateTime Target Setup - target: Install completed successfully.
07:54:25 ERROR: CUDA Runtime - target: command terminated with error
07:54:25 SUMMARY: CUDA Runtime - target: First Error: Failed to install debian package [target]
07:54:25 SUMMARY: NVIDIA Container Runtime with Docker integration (Beta) - target: Depends on failed component
07:54:25 SUMMARY: Multimedia API - target: Depends on failed component
07:54:25 SUMMARY: TensorRT on Target - target: Depends on failed component
07:54:25 SUMMARY: TensorRT Runtime - target: Depends on failed component
07:54:25 SUMMARY: VPI on Target - target: Depends on failed component
07:54:25 SUMMARY: VPI Runtime - target: Depends on failed component
07:54:25 SUMMARY: CuPVA Runtime - target: Depends on failed component
07:54:25 SUMMARY: CUDA Toolkit for L4T - target: Depends on failed component
07:54:27 ERROR: CuDNN Runtime - target: command terminated with error
07:54:27 SUMMARY: CuDNN Runtime - target: Failed to install debian package [target]
07:54:27 SUMMARY: cuDNN on Target - target: Depends on failed component
07:54:29 ERROR: OpenCV Runtime - target: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
07:54:29 ERROR: OpenCV Runtime - target: command terminated with error
07:54:29 SUMMARY: OpenCV Runtime - target: Installation failed.
07:54:29 SUMMARY: OpenCV - target: Depends on failed component

logs
SDKM_logs_JetPack_5.1.1_Linux_for_Jetson_AGX_Xavier_modules_2023-04-17_07-32-27.zip (560.4 KB)

from the original thread…
even if the os is running on ext4, the image also must be stored on an ext4 drive and I was sharing an NTFS drive for the storage location of the image. The SDKM does not check this, instruct, or warn about this.

Your topic was posted in the wrong category. I am moving this to the Jetson AGX Xavier category for visibility.

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