Bug 753618 - sandbox says "Error: User shell is not valid"
Summary: sandbox says "Error: User shell is not valid"
Keywords:
Status: CLOSED DUPLICATE of bug 752827
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Roman Rakus
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-13 19:14 UTC by amturnip
Modified: 2014-01-13 00:13 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-11-15 06:23:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.