Cannot login with non-root username on imx28

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Cannot login with non-root username on imx28

ソリューションへジャンプ
2,747件の閲覧回数
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,356件の閲覧回数
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,356件の閲覧回数
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,356件の閲覧回数
wumy
Contributor I

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

0 件の賞賛
返信
2,356件の閲覧回数
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,357件の閲覧回数
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 件の賞賛
返信