The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 10 root shell change x96riley3 SUN Solaris 10 09-22-2008 10:24 AM
How do I change domain name from shell? lucas IP Networking 2 05-12-2008 10:14 AM
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
change user in a shell scottl UNIX for Dummies Questions & Answers 2 08-28-2003 04:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-03-2006
irasela irasela is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 9
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
  #2 (permalink)  
Old 08-03-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
You change your login shell in /etc/passwd, not profile.
  #3 (permalink)  
Old 08-03-2006
irasela irasela is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 9
Tks a lot!!

It worked like a charm

Have a great day
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0