LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-05-2009, 12:31 AM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
how to change the shell


I use RHEL server , I know we use bash now , can advise how can I change the change the current shell to ksh ? except change /etc/passwd then reboot , what can i do ? thx
 
Old 10-05-2009, 12:37 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just change the entry in /etc/passwd, then logout/login.
No need to reboot; this isn't MS.
 
Old 10-05-2009, 12:48 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'm sure it is, but just to note: ksh should be in /etc/shells to change your shell as unprivileged user.
 
Old 10-05-2009, 04:06 AM   #4
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
thx reply ,

except change /etc/passwd , is there any command can change the shell ? thx
 
Old 10-05-2009, 04:09 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Yes in CLI run
Code:
ksh
Regadrs
 
Old 10-05-2009, 04:17 AM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, to make it permanent, run 'chsh'. Sorry, I somehow thought that had already been covered.
 
  


Reply



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
How to change from one shell to another? cll975dll Linux - Newbie 3 08-15-2009 01:51 AM
Can't seem to change to C-shell Azazwa Linux - Newbie 4 05-18-2009 06:06 AM
Can't change shell in plink shell script? lhouk Programming 2 08-02-2007 02:47 PM
Shell won't change! jaykup Linux - Newbie 2 05-11-2007 07:20 AM
shell script + change shell && continue darkRoom Programming 6 02-25-2005 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 PM.

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
Open Source Consulting | Domain Registration