imx6 ltib password fails

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6 ltib password fails

跳至解决方案
2,594 次查看
michaeldiamond
Contributor III

I have a boundary devices nitrogen 6x board and am trying to get an SSH connection to function.  After logging into the device using the console I type:

passwd

it returns;

root@freescale ~$ passwd

Changing password for root

New password:

Bad password: too weak

Retype password:

Password for root changed by root

then when I try and login using ssh, after giving the correct password it returns:

login as: root

root@192.168.2.117's password:

Last login: Thu Jan  1 00:00:39 1970 from 192.168.2.109

WARNING: Your password has expired.

You must change your password now and login again!

passwd: No such file or directory

My ethernet is using DHCP to get it IP address.

Any help would be appreciated on how to properly set a root password for linux.

Thanks

标签 (2)
1 解答
1,464 次查看
michaeldiamond
Contributor III

It appears that the problem came from the date and time of the unit.

Changed date using

date -s yyyy.mm.dd-hh:mm:ss

redid password and the ssh connection worked.

在原帖中查看解决方案

2 回复数
1,464 次查看
toipaz
Contributor III

Because the system finds "passwd" at "/usr/bin/passwd".

If you have the "passwd" file in /bin/busybox, you must create a new symbolic link as follows.

#   ln -s /bin/busybox /usr/bin/passwd

0 项奖励
回复
1,465 次查看
michaeldiamond
Contributor III

It appears that the problem came from the date and time of the unit.

Changed date using

date -s yyyy.mm.dd-hh:mm:ss

redid password and the ssh connection worked.