Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change shell from ksh to bash

Status
Not open for further replies.

jayjaybigs

IS-IT--Management
Jan 12, 2005
191
CA
Hello All,

I am interested in changing my unix shell parmanently from ksh to bash. Could anyone advise. I am currently doing the change in /etc/passwd file and it is not working.

JayJay
 
[tt]CHSH(1) Linux Reference Manual CHSH(1)

NAME
chsh - change your login shell
[/tt]

Or maybe
[tt]USERMOD(8) USERMOD(8)

NAME
usermod - Modify a user account
[/tt]

A really useful command, if you have it installed and configured, is apropos.
For example
[tt]$ apropos shell[/tt]
Finds all the man page entries with shell in the title.

--
 
Which unix? If Solaris, be very careful that you have a legitimate shell defined in /etc/passwd, otherwise you can find yourself locked out. As you might be bale to tell, I've been there, done that!!
 
it is not working
Any chance you could elaborate ?
Is bash a legitimate shell for your system (ie defined in /etc/shells)?
What is the value of the SHELL environment variable ?
...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top