After creating the default user, an error occurs after entering the user and password

I’m using ubuntu20.04 on my computer, According to https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/RootFileSystem.html, this tutorial builds "Basic Flavor Root File System ".
The tutorial will set a default user。
I shall, in accordance with the "Flashing Support — NVIDIA Jetson Linux Developer Guide 1 documentation onfig "Skipping oem-config Settings.
I have the following steps on PC Ubuntu20.04:

$ sudo apt-get install docker.io
$ sudo docker run --privileged -it --rm -v <your_L4T_root>/Linux_for_Tegra:/l4t ubuntu:22.04

(in the container) $ apt-get update
(in the container) $ apt-get install -y qemu-user-static wget sudo bzip2
(in the container) $ cd /l4t/tools/samplefs
(in the container) $ cd /l4t/tools/samplefs ./nv_build_samplefs.sh --abi aarch64 --distro ubuntu --flavor basic --version jammy
(in the container) $ exit

$ cd ~/nvidia//nvidia/Linux_for_Tegra/tools/samplefs
~/nvidia/Linux_for_Tegra/tools/samplefs$ cp sample_fs.tbz2 ~/nvidia/Linux_for_Tegra/rootfs
~/nvidia/Linux_for_Tegra/tools/samplefs$ cd ~/nvidia/Linux_for_Tegra/rootfs
~/nvidia/Linux_for_Tegra/rootfs$ sudo tar -xpf sample_fs.tbz2
~/nvidia/Linux_for_Tegra/rootfs$ cd ~/nvidia/Linux_for_Tegra
~/nvidia/Linux_for_Tegra$ sudo ./apply_binaries.sh
~/nvidia/Linux_for_Tegra$ sudo ./tools/l4t_flash_prerequisites.sh 
~/nvidia/Linux_for_Tegra$ sudo ./tools/l4t_create_default_user.sh -u root -p 123456
~/nvidia/Linux_for_Tegra$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1   -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml"   --showlogs --network usb0 jetson-orin-nano-devkit internal

When I entered the user name and password on orin Nano development board, the user did not exist.

root is a special account. It is already there. You probably even set the password. However, that account is disabled by Ubuntu except through the sudo mechanism. This is “an Ubuntu-ism”. You can unlock that account, but you must have a non-root admin account. Those admin accounts have access to sudo, and sudo is how you unlock root. When you have a non-root account name this will work.

If you need help unlocking root, then just ask. FYI, it is ok to unlock this account locally, but you usually want it disabled to ssh. One can unlock root locally without unlocking ssh, it is fairly trivial to do. If you need root access remotely, then it is advisable to only allow remote root login over ssh by key (and key access is far easier to work with than password).

1 Like

~/nvidia/Linux_for_Tegra$ sudo ./tools/l4t_create_default_user.sh -u ys -p 123456
I have set other user names, also can not log in

zynq@ubuntu:~/nvidia/Linux_for_Tegra$ sudo ./tools/l4t_create_default_user.sh -u ys -p 123456
Creating: Username - ys, Password - 123456, Autologin - false
Creating: Hostname - tegra-ubuntu
zynq@ubuntu:~/nvidia/Linux_for_Tegra$

Is it correct that the problem is solved? Let me know if you need to know about unlocking root or setting up ssh keys.

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