Bug 827844 - Unable to use chsh
Unable to use chsh
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
17
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Karel Zak
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-03 05:13 EDT by Michael Scherer
Modified: 2012-06-03 05:39 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-03 05:39:31 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to not hardcode /bin in the spec (1.12 KB, patch)
2012-06-03 05:17 EDT, Michael Scherer
no flags Details | Diff
Do not hardcode /bin (1.12 KB, patch)
2012-06-03 05:20 EDT, Michael Scherer
no flags Details | Diff

  None (edit)
Description Michael Scherer 2012-06-03 05:13:52 EDT
Description of problem:
chsh refuse to change the shell to zsh, as it was moved from /bin/ to /usr/bin, and neither /etc/shells not the package have taken this in account.

See http://ask.fedoraproject.org/question/1785/why-chsh-shell-not-changed

Version-Release number of selected component (if applicable):
zsh-4.3.17-1.fc17.x86_64

How reproducible:
each time

Steps to Reproduce:
1. chsh -s /bin/zsh
  
Actual results:
"Shell not changed"

Expected results:
"Shell was changed"

Additional info:

A way to fix is to add to /etc/shells the correct path of zsh, ie in /usr/bin/
Comment 1 Michael Scherer 2012-06-03 05:17:24 EDT
Created attachment 588811 [details]
patch to not hardcode /bin in the spec

Here is a patch, I didn't test it yet, and I think we should take in account the upgrade issue ( ie, cleaning /etc/shells )
Comment 2 Michael Scherer 2012-06-03 05:20:55 EDT
Created attachment 588812 [details]
Do not hardcode /bin
Comment 3 Michael Scherer 2012-06-03 05:31:04 EDT
Comment on attachment 588811 [details]
patch to not hardcode /bin in the spec

Oops, uploaded the patch twice
Comment 4 Michael Scherer 2012-06-03 05:39:31 EDT
Mhh, seems I was wrong with the whole bug stuff and my testing was wrong, let me close the bug.

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