Fedora Linux Support Community & Resources Center
  #1  
Old 16th February 2012, 03:32 AM
fbluedevil Offline
Registered User
 
Join Date: Feb 2012
Location: St. Louis, MO US
Posts: 4
linuxfirefox
Problems installing zsh as the default shell.

I want to make zsh my default shell.

When I run the command less /etc/shells, I get the following output.

/sbin/nologin
/bin/dash
/bin/zsh

1) However, when I run the following command chsh --shell /usr/bin/zsh
I get the following output

chsh: chsh: your shell is not in /etc/shells, shell change denied: Permission denied.

2) Running the command as root returns the same result.
3) Running chsh --shell /bin/zsh - also returns the same result

I also tried changing the shell variable using:
4) export SHELL=$SHELL:/usr/bin/zsh : and then logging out and back in

After logging in I get the bash promp againt.

Entering zsh at the command line will get put me into zsh, so zsh is definately installed, but how do I set it up as the default shell?

Any help would be greatly appreciated.
Reply With Quote
  #2  
Old 16th February 2012, 03:40 AM
bodhi.zazen Offline
Registered User
 
Join Date: Jul 2006
Location: Montana
Posts: 731
windows_xp_2003firefox
Re: Problems installing zsh as the default shell.

I think it should be

Code:
chsh --shell /bin/zsh
(not /usr/bin/zsh)
__________________
If it is not broken, tweak it... If you break Fedora you get to keep both pieces :p
Reply With Quote
  #3  
Old 16th February 2012, 04:28 AM
fbluedevil Offline
Registered User
 
Join Date: Feb 2012
Location: St. Louis, MO US
Posts: 4
linuxfirefox
Re: Problems installing zsh as the default shell.

Quote:
Originally Posted by bodhi.zazen View Post
I think it should be

Code:
chsh --shell /bin/zsh
(not /usr/bin/zsh)
I tried that as well - see #3 in my orginal post - it returned the same error message.
Reply With Quote
  #4  
Old 16th February 2012, 05:35 AM
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,484
linuxfirefox
Re: Problems installing zsh as the default shell.

Odd... I get this:
Code:
$ chsh --shell /bin/zsh
Changing shell for gene.
Password: 
Shell changed.

$ chsh --shell /bin/bash
Changing shell for gene.
Password: 
Shell changed.
Perhaps you need to reinstall bash? I know there were some problems that were solved by doing that.
Code:
sudo yum reinstall bash
I see that it was the twelfth yum transaction I did after installing F16.
Code:
$ sudo yum history list bash
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit, remove-with-leaves, show-
              : leaves, verify
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    26 | Gene <gene>              | 2011-12-02 15:29 | Update         |    9   
    12 | Gene <gene>              | 2011-11-17 17:18 | Reinstall      |    1   
     3 | Gene <gene>              | 2011-11-14 17:25 | I, U           |  131   
     1 | System <unset>           | 2011-11-14 16:35 | Install        | 1294   
history list
dd_wizard
Reply With Quote
  #5  
Old 16th February 2012, 11:51 AM
fbluedevil Offline
Registered User
 
Join Date: Feb 2012
Location: St. Louis, MO US
Posts: 4
linuxfirefox
Re: Problems installing zsh as the default shell.

dd_wizard

I reinstalled bash and everything worked as advertised! It also solved another problem I was experiencing as in "where are my man pages?". Now I have zsh set up as my default shell and I have access to the man pages again.

Many Thanks!
Reply With Quote
Reply

Tags
default, installing, problems, shell, zsh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing from shell script? patanjalimuni Using Fedora 3 8th July 2010 03:09 AM
Installing korn shell w/o Internet access Nogginboink Installation, Upgrades and Live Media 4 15th June 2009 06:41 AM
How do I change my default shell? youhaodeyi Using Fedora 3 8th October 2007 03:55 AM
how to change default application for shell-scripts touchstone_81 Using Fedora 2 28th May 2006 12:20 AM


Current GMT-time: 05:20 (Monday, 29-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Cairo International Airport, Terminal 3 Instagram Photos - Hochschule Landshut Photos on Instagram - BLACK CHANNEL clothing x cafe'