Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting


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

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-25-2004
Registered User
 
Join Date: Oct 2002
Location: /home
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #2  
Old 06-25-2004
Registered User
 
Join Date: Jun 2004
Location: ~Philadelphia
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #3  
Old 06-26-2004
Registered User
 
Join Date: Jun 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 06-26-2004
Registered User
 
Join Date: Jul 2002
Location: new york
Posts: 1,025
Thanks: 0
Thanked 1 Time in 1 Post
i never knew about chsh. i always just edited /etc/passwd
Sponsored Links
    #5  
Old 06-26-2004
Registered User
 
Join Date: Oct 2002
Location: /home
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Sponsored Links
    #6  
Old 06-26-2004
zazzybob's Avatar
Registered Geek
 
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,186
Thanks: 3
Thanked 23 Times in 22 Posts
If you're using solaris passwd -e will change your login shell. Which OS are you using?

Cheers
ZB
Sponsored Links
    #7  
Old 06-27-2004
Registered User
 
Join Date: Oct 2002
Location: /home
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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

Tags
solaris

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
Can't change default shell Grueben Solaris 4 02-19-2011 06:04 PM
How to change Default Shell for any user? lalit21984 UNIX for Dummies Questions & Answers 1 03-10-2010 04:15 AM
how to change default shell in linux? princelinux Shell Programming and Scripting 8 05-07-2009 09:31 AM
Change the default shell from bash to ksh dr46014 UNIX for Dummies Questions & Answers 2 11-22-2008 07:13 AM
Change default shell npaisnel Shell Programming and Scripting 14 10-09-2008 07:54 AM



All times are GMT -4. The time now is 01:27 AM.