Bug 783659

Summary: chsh fails due to /bin/bash not in /etc/shells
Product: [Fedora] Fedora Reporter: alberth289346
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: jonathan, kzak, mluscon, ovasik
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: 2012-01-21 21:16:59 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 alberth289346 2012-01-21 14:56:09 UTC
Just installed F16, and want to switch from the default /bin/bash shell to my normal zsh shell.
'chsh' however fails:

[hat3@localhost ~]$ chsh
chsh: chsh: your shell is not in /etc/shells, shell change denied: Permission denied
[hat3@localhost ~]$ cat /etc/shells
/sbin/nologin
/bin/dash
/bin/zsh
[hat3@localhost ~]$ echo $SHELL
/bin/bash
[hat3@localhost ~]$ grep hat3 /etc/passwd
hat3:x:1000:1000:hat3:/home/hat3:/bin/bash

Comment 1 Ondrej Vasik 2012-01-21 21:16:59 UTC
Thanks for report, but this has nothing to do with chsh - the culprit is buggy bash package - unfortunately even the update to latest bash doesn't solve the issue, only yum reinstall bash after the update will help. Closing duplicate...

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