Force user to change password change on first login

We will use chage for this. chage utility allows us to change the password expiry date.

To run 'chage -d0 root' after rootfs is created we will use 'ROOTFS_POSTPROCESS_COMMAND'.
Modified core-image-minimal.bb  by adding a 'ROOTFS_POSTPROCESS_COMMAND'


Flash the image on the Beaglebone black. On first boot, it will ask you for changing the password.



Comments

  1. This is a great article and I found lot of valuable information from here.

    You would love to check this article that has great information.

    https://techiewheel.blogspot.com/2021/01/how-to-change-password-in-linux.html

    ReplyDelete

Post a Comment

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto