mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
add new extrausers command passwd-expire
This enhances extrausers with a new passwd-expire command that causes a local user's password to be expired as if the `passwd --expire` command was run, so the password needs to be changed on initial login. Example: EXTRA_USERS_PARAMS += " useradd ... USER; passwd-expire USER;" Tested: on useradd accounts When configured with Linux-PAM, console login prompts for and can successfully change the password. OpenSSH server works. Dropbear SSH server notes the password must be changed but does not offer a password change dialog and rejects the login request. (From OE-Core rev: 1bdcfa4b0d378947a6759fb91872a4edc9a42622) Signed-off-by: Joseph Reynolds <joseph-reynolds@charter.net> Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2b5e7e4276
commit
834ef343b3
@@ -46,6 +46,9 @@ set_user_group () {
|
||||
usermod)
|
||||
perform_usermod "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
|
||||
;;
|
||||
passwd-expire)
|
||||
perform_passwd_expire "${IMAGE_ROOTFS}" "$opts"
|
||||
;;
|
||||
groupmod)
|
||||
perform_groupmod "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user