Bug 479 - "cannot execute bin/sh" when changing user in lsb image
Summary: "cannot execute bin/sh" when changing user in lsb image
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 0.9 M4
Assignee: Kevin Tian
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-10-17 03:38 UTC by Kevin Tian
Modified: 2010-12-21 06:07 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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