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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to change default shell in linux? princelinux Shell Programming and Scripting 8 05-07-2009 09:31 AM
pswd change on sco GUI login qphillips SCO 3 10-03-2005 07:39 AM
How can I change my default shell milhan Shell Programming and Scripting 17 07-13-2004 04:15 PM
Login screen change miredale UNIX for Dummies Questions & Answers 2 10-25-2002 09:18 AM
change login dir lorcet222 UNIX for Dummies Questions & Answers 5 01-29-2002 07:07 AM

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 12-10-2005
klarue7 klarue7 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 1
How to change your default login shell.

I am new to UNIX hence the question. Most of the time when I have an environment set up for me to develop my systems, I have had my ID logon and I can edit the .profile for my account and it understand commands korn shell. It seems this machine, a new SUN machine, was setup with users getting the Bourne shell as default. I get /bin/sh when I type in the command echoe $SHELL at the $ prompt. Is there anyway for me as a user to change that? How can I default my login into ksh? Is that possible?
  #2 (permalink)  
Old 12-10-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
Quote:
Originally Posted by klarue7
I am new to UNIX hence the question. Most of the time when I have an environment set up for me to develop my systems, I have had my ID logon and I can edit the .profile for my account and it understand commands korn shell. It seems this machine, a new SUN machine, was setup with users getting the Bourne shell as default. I get /bin/sh when I type in the command echoe $SHELL at the $ prompt. Is there anyway for me as a user to change that? How can I default my login into ksh? Is that possible?
Not directly as a normal user, however you could test the shell and exec ksh in your .profile and it should work.
  #3 (permalink)  
Old 12-10-2005
klarue klarue is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 1
Thanks, that's what I needed to know.
  #4 (permalink)  
Old 05-07-2009
ajincoep ajincoep is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 7
I read that below command can be used, but my shell do not find this command
chsh -s /usr/local/bin/bash <usename>
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 05:24 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