Login Changes - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
Release Date
2023.2 English

Follow the steps for login change:

  1. serial-autologin-root option in PetaLinux tool is disabled by default. If required, you can enable this with $ petalinux-config -c rootfs -→ Image Features -→ [ ] serial-autologin-root.
  2. The root login is disabled by default. The default user is petalinux and the password should be set on first boot. If you want to use ssh login, you should first boot via console and need to set password.
  3. Yocto removed plain text passwords support. The password should be in salt form. PetaLinux converts the provided password in config to static salt password using openssl and add to plnxtool.conf.
    Config settings to set user and password:
    petalinux-config -c rootfs -→ PetaLinux RootFS Settings -→ (root:root;petalinux:petalinux:passwd-expire;)
    In plnxtool.conf EXTRA_USERS_PARAMS looks like:
    EXTRA_USERS_PARAMS = "usermod -p '\$6\$xx\$CkLCyUiVJPDvNL9C/gQans7jV3BvnVoW60raOcEE.KlziPn8pPMe8WvAQ3cPwwO4YRcYRBjlUhSfw/kaubhtp1' root; \
    useradd -p \$6\$xx\$12fBVQgrrkB6ZmS6DSUIeVLW3Cot/hC4g8ZhbcwLZtKG93spibFJ/.0rF688RnsqMrgIbnHFkZnJu0Tk9.7F41' petalinux;passwd-expire petalinux; \"
    Note: Display WARNING message when 'root' password is set to 'root'. Warning: Root password set to 'root', It is highly recommended to change Root password.
  4. Add config support to specify passwd-expire.
    petalinux-config -c rootfs -→ PetaLinux RootFS Settings -→ (root:root;petalinux:petalinux:passwd-expire;) Add Extra Users
  5. Removed the ROOTFS_PASSWD configuration option. Use EXTRA_USERS configuration to specify the root user password.
  6. You can skip the root password using petalinux-config -c rootfs -> Image Features -> empty-root-password