Bug 922527 - add /usr/bin/bash to /etc/shells
Summary: add /usr/bin/bash to /etc/shells
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: setup
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-17 16:39 UTC by Harald Reindl
Modified: 2013-04-14 10:54 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-14 10:54:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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