Bug 479

Summary: "cannot execute bin/sh" when changing user in lsb image
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Kevin Tian <kevin.tian>
Component: meta-yoctoAssignee: Kevin Tian <kevin.tian>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dongxiao.xu, jessica.zhang, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Kevin Tian 2010-10-17 03:38:02 UTC
First create a new user with useradd/passwd, and then:
  - either "sudo username"
  - or exit from current session and relogin with new username

"Cannot execute bin/sh: Permission denied" error pops up.

A quick check is that pam config files for shadow package look not installed, which may be the reason
Comment 1 Dongxiao Xu 2010-10-18 00:28:07 UTC
Kevin, is this issue related with the wrong permission set? See bug 463.
I met the same issue (sudo username doesn't work) when debugging the wpa_supplicant issue, however I didn't verify whether it works after pseudo is upgrade and BUG 463 got fixed.
Comment 2 Kevin Tian 2010-10-18 00:33:53 UTC
exactly, some directories are also marded as "drwx------" only in my side. Thanks for the hint, and then I'll verify them in new rc3 image
Comment 3 Kevin Tian 2010-10-18 20:26:11 UTC
this has been fixed by fa914040550fdc8fd603eefad1f03d44b13fc611
Comment 4 Kevin Tian 2010-10-18 20:26:53 UTC
verified on latest RC3 arm lsb image