Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Search this Thread
Old 08-16-2007, 05:07 AM   #1
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Rep: Reputation: 15
Changing the Default Shell.

Does anyone know where Linux (in this case RHEL) keeps its default shell setting?

I know that shells can be changed by running chsh and changing the passwd file. This is not what I am trying to find.

These programs and files are initially set from some fefault setting .. . It is this that I need to find.

In the case of Red Hat oriented distros, the default is bash. I need to find a way to change this if possible.
Old 08-16-2007, 10:18 AM   #2
Registered: Apr 2003
Location: Ohio
Distribution: PCLinuxOS
Posts: 97

Rep: Reputation: 15
Try modifying the SHELL entry in /etc/default/useradd

Here's mine (on CentOS):

cat /etc/default/useradd
# useradd defaults file
Old 08-20-2007, 10:27 AM   #3
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Original Poster
Rep: Reputation: 15
Does not get much simpler than that!



default, shell

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 06:29 AM
'sh' shell - Actually calls legacy Bourne shell, or uses system default? Dtsazza Linux - Software 1 10-28-2005 09:20 AM
Changing default OS in Grub .95 gautcha Linux - Newbie 8 05-03-2005 11:30 PM
changing my default shell after login? Quartzophobia Linux - General 1 02-11-2004 11:36 AM
changing default WM pmh6310 Linux - Newbie 5 06-11-2003 05:00 PM

All times are GMT -5. The time now is 04:23 AM.

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