How can I change my default shell | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


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

How can I change my default shell

Shell Programming and Scripting


Tags
solaris

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-25-2004
milhan milhan is offline
Registered User
 
Join Date: Oct 2002
Last Activity: 11 December 2012, 10:36 PM EST
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
dkaplowitz dkaplowitz is offline
Registered User
 
Join Date: Jun 2004
Last Activity: 22 July 2009, 8:31 AM EDT
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
Russell Russell is offline
Registered User
 
Join Date: Jun 2004
Last Activity: 26 September 2006, 7:55 AM EDT
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
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
 
Join Date: Jul 2002
Last Activity: 26 May 2006, 8:38 PM EDT
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
milhan milhan is offline
Registered User
 
Join Date: Oct 2002
Last Activity: 11 December 2012, 10:36 PM EST
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
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
 
Join Date: Dec 2003
Last Activity: 13 May 2013, 9:02 AM EDT
Location: Melbourne, Australia
Posts: 2,185
Thanks: 3
Thanked 24 Times in 23 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
milhan milhan is offline
Registered User
 
Join Date: Oct 2002
Last Activity: 11 December 2012, 10:36 PM EST
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

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 05:49 AM.