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
How to change your default login shell. klarue7 Shell Programming and Scripting 3 05-07-2009 09:15 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
Change to ksh shell irasela UNIX for Dummies Questions & Answers 2 08-03-2006 01:57 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 Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1 (permalink)  
Old 06-25-2004
milhan milhan is offline
Registered User
  
 

Join Date: Oct 2002
Location: /home
Posts: 133
Question How can I change my default shell

hi ;
Right now my default shell on our school system is :
/bin/ksh

but i want to change it to another shell. There is also bash shell installed in the system as : /bin/bash

So, how can I change my default shell to bash shell? Or maybe any other shell?
  #2 (permalink)  
Old 06-25-2004
dkaplowitz dkaplowitz is offline
Registered User
  
 

Join Date: Jun 2004
Location: ~Philadelphia
Posts: 63
the command you want is "chsh", but you might not have the requisite permissions to change it, depending on the system or the local policy.

You could also just change your .profile to execute /bin/bash if chsh doesn't work.
  #3 (permalink)  
Old 06-26-2004
Russell Russell is offline
Registered User
  
 

Join Date: Jun 2004
Posts: 15
Once changing your shell with `chsh' ensure you `su' to yourself to see if the changes are successful. Otherwise you mat find yourself locked out.
  #4 (permalink)  
Old 06-26-2004
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
i never knew about chsh. i always just edited /etc/passwd
  #5 (permalink)  
Old 06-26-2004
milhan milhan is offline
Registered User
  
 

Join Date: Oct 2002
Location: /home
Posts: 133
Quote:
Originally posted by norsk hedensk
i never knew about chsh. i always just edited /etc/passwd
yeah, but you can not edit that file unless you have administrator privilage.

By the way, chsh command is not recognized by my system...
  #6 (permalink)  
Old 06-26-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
If you're using solaris passwd -e will change your login shell. Which OS are you using?

Cheers
ZB
  #7 (permalink)  
Old 06-27-2004
milhan milhan is offline
Registered User
  
 

Join Date: Oct 2002
Location: /home
Posts: 133
Quote:
Originally posted by zazzybob
If you're using solaris passwd -e will change your login shell. Which OS are you using?

Cheers
ZB
this is the message I get when I login to the system :
Code:
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
passwd -e command does not work either, I think passwd command is locked for the users, because it gives a brief message when I type the passwd command on shell.
Sponsored Links
Closed Thread

Bookmarks

Tags
solaris

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 03:36 AM.


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