Cannot login with non-root username on imx28

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

Cannot login with non-root username on imx28

跳至解决方案
2,744 次查看
luhengwang
Contributor I

May I login imx28 built with yocto with non-root username?

hw-platform: imx28

build system: "https://github.com/Freescale/fsl-community-bsp-platform -b fido"

fs-image: core-image-full-cmdline

kernel: 3.12.6

Description: After I created a non-root user with command "useradd", I tried to login with newly created username and failed. I failed both on console and with ssh. The command 'last' shows that the newly id has login successfully but logout immediately. So it's not that the creation of new username has not rightly performed. I manually typed in 'login', and then feed with newly created username and passwd, and a string "Killed" prompted. After tracing the code of 'shadow', I found that the authentication of the non-root has passed and 'shadow' is calling 'execle' to switch to log-in bash. It looks like the log-in bash is killed.

I tried with 'core-image-full-cmdline', 'core-image-minimal', I even tried with officially built "http://downloads.yoctoproject.org/releases/yocto/yocto-1.8/machines/imx28evk/core-image-minimal-imx2...", but I got the same error.

I searched on web but no relevant page was found. It seems that only few people uses non-root user to login embedded system.

Is there something I missed? Or, we just cannot login with non-root user with yocto built system?

标签 (3)
0 项奖励
回复
1 解答
2,353 次查看
luhengwang
Contributor I

This might be caused by fido branch. After testing with 2.1 version "http://downloads.yoctoproject.org/releases/yocto/yocto-2.1/machines/imx28evk/core-image-minimal-imx2...", the issue is gone.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,353 次查看
wumy
Contributor I

Hi all:
I solved this problem by modify the kernel config parameter CONFIG_DEFAULT_MMAP_MIN_ADDR from 65536 to default val 4096, which is a bug of kernel before v3.19.

see:https://bugs.launchpad.net/ubuntu/+s...x/+bug/1418140

0 项奖励
回复
2,353 次查看
wumy
Contributor I

Hello, do you solve this problem? I meet the same problem for some days.

0 项奖励
回复
2,353 次查看
b36401
NXP Employee
NXP Employee

Please try to change the password of that non-root user and make sure that /etc/shadow file got updated.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,354 次查看
luhengwang
Contributor I

This might be caused by fido branch. After testing with 2.1 version "http://downloads.yoctoproject.org/releases/yocto/yocto-2.1/machines/imx28evk/core-image-minimal-imx2...", the issue is gone.

0 项奖励
回复