LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2016, 07:43 AM   #1
shijm
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Rep: Reputation: Disabled
Linux login shell not changing for GNOME terminal in CentOS 7


I'm having trouble changing my login shell when I'm using GNOME terminal in CentOS 7.

I want to use fish instead of bash, and I've installed fish into my machine.

I've already added "/bin/fish" to "/etc/shells", and have also typed "chsh -s /bin/fish [my user name]" in order to change the shell permanently.

However, every time I open up a new terminal, I get bash as my login shell. What is more confusing is that when I type "echo $SHELL", it give me back "/bin/fish"!

Do I have to reboot my system to change my login shell permanently, or is this an issue? If so, does anyone have a clues to solve this problem?

Thanks in advance!

Last edited by shijm; 05-04-2016 at 07:22 PM.
 
Old 05-02-2016, 01:30 PM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,829

Rep: Reputation: 257Reputation: 257Reputation: 257
I would make /bin/bash a link to /bin/fish:

$ mv /bin/bash /bin/bash.bak

@ ln -s /bin/fish /bin/bash

Bash then is fish. On many systems dash is linked to bash, rather than rewrite the shell configurations, which certain users want switched back to bash.
 
Old 05-02-2016, 03:56 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
You need to reboot for the change to take effect.
 
Old 05-04-2016, 07:23 PM   #4
shijm
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi

Thanks for answering my question!

suicidaleggroll was right, and after I rebooted my linux system, the shell changed!
 
Old 05-06-2016, 08:55 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by AwesomeMachine View Post
I would make /bin/bash a link to /bin/fish:

$ mv /bin/bash /bin/bash.bak

@ ln -s /bin/fish /bin/bash

Bash then is fish. On many systems dash is linked to bash, rather than rewrite the shell configurations, which certain users want switched back to bash.
Umm. no.

That could/would damage every shell script that starts with "#!/bin/bash", and any scripts used during system boot (as well as every other user...). It also can get destroyed by updates to the system.

A better way is to look at the menu entry that starts gnome terminal and specify that it use fish.

Last edited by jpollard; 05-06-2016 at 08:59 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gnome terminal 2.1.0, centos 5 - how to 'find' text listed on terminal screen linuxquestions_forum_use Linux - Newbie 2 12-21-2010 09:35 PM
changing gnome-terminal menus MrUmunhum Linux - Desktop 2 07-26-2010 04:49 PM
LXer: Linux Gnome Hack: Open Terminal (shell prompt) in Current / Selected Directory LXer Syndicated Linux News 0 11-06-2008 09:20 AM
Changing default terminal login directory mareid Linux - General 1 06-17-2006 11:31 PM
Changing environment variable for gnome session from gnome-terminal pymehta Linux - Software 1 10-11-2005 06:19 PM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration