Bug 753618

Summary: sandbox says "Error: User shell is not valid"
Product: [Fedora] Fedora Reporter: amturnip
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dwalsh, maxamillion, mgrepl, ovasik, pknirsch, rrakus, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-15 06:23:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description amturnip 2011-11-13 19:14:27 UTC
Description of problem:

Instead of running firefox, sandbox gives an error message.

Version-Release number of selected component (if applicable):

$ rpm -q bash firefox policycoreutils policycoreutils-python policycoreutils-sandbox
bash-4.2.10-5.fc16.x86_64
firefox-7.0.1-3.fc16.x86_64
policycoreutils-2.1.4-3.fc16.x86_64
policycoreutils-python-2.1.4-3.fc16.x86_64
policycoreutils-sandbox-2.1.4-3.fc16.x86_64

How reproducible:

  Consistently

Steps to Reproduce:

1. /usr/bin/sandbox -X -t sandbox_web_t -W /usr/bin/metacity /usr/bin/firefox
  
Actual results:

  Error: User shell is not valid

Expected results:

  A window full of Firefox.

Additional info:

  This is my first attempt to use sandbox in Fedora 16.

Comment 1 Miroslav Grepl 2011-11-14 11:36:00 UTC
What does

# echo $0

Comment 2 Daniel Walsh 2011-11-14 20:00:03 UTC
Something updated your system and screwed up your /etc/shells file.  And removed /bin/bash from it.

It is not our bug, but I have never figured out who does it.

Comment 3 Ondrej Vasik 2011-11-14 20:38:50 UTC
It was recent bug in bash ... See #752827 ... however as the bash version in that duplicate bugzilla is the same as the one from your report, I'll keep it opened until Roman's review.

Comment 4 amturnip 2011-11-14 23:56:45 UTC
Thank you all.

$ echo $0
bash

$ cat /etc/shells
/sbin/nologin
/bin/dash

In the referenced bug 752827, Roman Rakus wrote, "So probably people should upgrade twice :)"  So I did "yum reinstall bash" and /etc/shells got better:

$ cat /etc/shells
/sbin/nologin
/bin/dash
/bin/bash
/bin/sh

Comment 5 amturnip 2011-11-15 00:42:25 UTC
To clarify - bash having been reinstalled, sandbox no longer gives the error message that was the subject of this report.  Resolved.

Comment 6 Ondrej Vasik 2011-11-15 06:23:01 UTC
Ok, thanks for confirmation, as yum reinstall fixed the issue, marking this bugzilla as duplicate of #752827

*** This bug has been marked as a duplicate of bug 752827 ***