Change to ksh shell | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Change to ksh shell

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-03-2006
irasela irasela is offline
Registered User
 
Join Date: Jan 2006
Last Activity: 19 October 2006, 4:36 PM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Change to ksh shell

Hi everyone:

Mi default shell is sh, i need to set the TMOUT variable so i need to change the shell to ksh, I change the /etc/profile file as follows, but when i do an echo $0 stll sh been the shell:

# more /etc/profile
#
# (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
# ALL RIGHTS RESERVED
#
#
# OSF/1 Release 1.0

trap "" 2 3

export LOGNAME TERM

. /etc/TIMEZONE

# Login and -su shell get /etc/profile services.
# -rsh is given its environment in its .profile.
case "$0" in
-su )
export PATH
;;
-sh )
export PATH
;;
-ksh )
export PATH
;;
esac

umask 022
trap 2 3
SHELL=/bin/ksh
export SHELL
TMOUT=1800
export TMOUT
# echo $SHELL
/bin/ksh
# echo $0
-sh


What should I do to have ksh as my default shell?

Best regards
Sponsored Links
    #2  
Old 08-03-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
 
Join Date: May 2006
Last Activity: 4 May 2012, 3:37 PM EDT
Location: Tau Ceti V
Posts: 558
Thanks: 0
Thanked 7 Times in 6 Posts
You change your login shell in /etc/passwd, not profile.
Sponsored Links
    #3  
Old 08-03-2006
irasela irasela is offline
Registered User
 
Join Date: Jan 2006
Last Activity: 19 October 2006, 4:36 PM EDT
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Tks a lot!!

It worked like a charm

Have a great day
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to change shell's pwd gigagigosu Shell Programming and Scripting 3 12-20-2011 01:19 PM
Can't change default shell Grueben Solaris 4 02-19-2011 06:04 PM
how to change shell from BASH to C npatwardhan Shell Programming and Scripting 3 11-12-2008 09:43 PM
How do I change domain name from shell? lucas UNIX for Dummies Questions & Answers 3 05-09-2008 02:17 AM
How can I change my default shell milhan Shell Programming and Scripting 17 07-13-2004 04:15 PM



All times are GMT -4. The time now is 10:23 AM.