Wind River Support Network


LIN6-10391 : chage: passwd: No such file or directory

Created: Sep 28, 2015    Updated: Dec 3, 2018
Resolved Date: Nov 30, 2015
Found In Version:
Fix Version:
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Networking, Userspace


Add a user, force the password to be reset; on next login, the ssh connection always fails for that user.


$ cd prj/layers/oe-core/meta/recipes-connectivity/openssh/
$ git diff
diff --git a/meta/recipes-connectivity/openssh/ b/meta/recipes-connectivity/openssh/
index f0ecc91..16dbb35 100644
--- a/meta/recipes-connectivity/openssh/
+++ b/meta/recipes-connectivity/openssh/
@@ -78,7 +78,7 @@ EXTRA_OECONF = "--with-rand-helper=no \
# just because it finds libutil.h. But, specifying --disable-libutil
# causes compile errors, so...
-CACHED_CONFIGUREVARS += "ac_cv_header_bsd_libutil_h=no ac_cv_header_libutil_h=no"
+CACHED_CONFIGUREVARS += "ac_cv_header_bsd_libutil_h=no ac_cv_header_libutil_h=no ac_cv_path_PATH_PASSWD_PROG=/usr/bin/passwd"

# This is a workaround for uclibc because including stdio.h
# pulls in pthreads.h and causes conflicts in function prototypes.

Steps to Reproduce

$ /lx6/wrlinux-6/wrlinux/configure --enable-reconfig --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_core --with-package=openssh --with-rcpl-version=0024
$ make
$ make start-target TOPTS="-in 1"
root@qemu1:~# adduser user1
Enter new UNIX password: test
Retype new UNIX password: test
passwd: password updated successfully 
root@qemu1:~# chage -d 0 user1

From the host:
$ ssh -p 4540 user1@localhost
user1@localhost's password: 
You are required to change your password immediately (root enforced)
WARNING: Your password has expired.
You must change your password now and login again!
passwd: No such file or directory

Other Downloads

Live chat