Bug 922527

Summary: add /usr/bin/bash to /etc/shells
Product: [Fedora] Fedora Reporter: Harald Reindl <h.reindl>
Component: setupAssignee: Ondrej Vasik <ovasik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: ovasik, pahan, pknirsch
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: 2013-04-14 10:54:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Harald Reindl 2013-03-17 16:39:59 UTC
rpm -q --file /etc/shells 
setup-2.8.57-1.fc18.noarch

after UsrMove /usr/bin/bash is a perfectly valid shell
because it is the physical location
_________________________

[root@fileserver:~]$ system-config-users
The value for the SHELL variable was not found the /etc/shells file
This incident has been reported

[root@fileserver:~]$ cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin

[root@fileserver:~]$ cat /etc/passwd | grep root
root:x:0:0:root:/root:/usr/bin/bash

Comment 1 Ondrej Vasik 2013-03-17 16:42:59 UTC
You are right, I even think I should add even /usr/bin/sh and /usr/sbin/nologin for the "sanity". I don't think anyone will use these constructs, but these are perfectly valid too (and they mean one less symlink resolving ;) )

Comment 2 Harald Reindl 2013-03-17 17:03:56 UTC
the "one less symlink resolving" is te reason why i changed nearly anything from crontab, /etc/password to my personal scripts to /usr/bin/bash long ago and there are very few fragments like system-config-users which are not happy with this

Comment 3 Ondrej Vasik 2013-04-14 08:11:13 UTC
Just as a sidenote, already built in Rawhide as setup-2.8.67-1.fc20.

Comment 4 Harald Reindl 2013-04-14 10:17:28 UTC
thanks

please do not push a update without these change for F17/F18 
my /etc/shells is for now manually fixed on all my machines :-)

Comment 5 Ondrej Vasik 2013-04-14 10:54:50 UTC
/etc/shells is config noreplace and is changed by other shell packages, so I'll close this bugzilla rawhide. Of course, if I do some setup F17/F18 update in future, I'll include this change.