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
Executable directory general question FredSmith UNIX for Dummies Questions & Answers 1 05-17-2006 05:14 PM
general question on executing file in drwx--x--x directory cul8erppl Shell Programming and Scripting 2 07-20-2005 04:19 AM
general question? wmosley2 Shell Programming and Scripting 2 12-18-2003 12:55 AM
General Proxy Question sam_pointer UNIX for Dummies Questions & Answers 1 09-24-2001 10:36 PM
General Proxy Question sam_pointer IP Networking 1 09-18-2001 07:24 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 11-13-2002
ccindyderek ccindyderek is offline
Registered User
  
 

Join Date: Nov 2002
Location: United States of America
Posts: 1
Question General Question

Hi, I've been racking my brains trying to remember, but, whats the command to change the default shell? I'm currently always in the Korn shell and I want to start out in the Bash shell. I'm running a variant of BSD I guess in Mac OS X 10.2.2 and Mandrake. Thanks.

ccindyderek
  #2 (permalink)  
Old 11-13-2002
yls177
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
sh, (bourne shell? )
ksh (korn shell)
csh for c shell
  #3 (permalink)  
Old 11-13-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
In Mandrake, use the command (at the command line of course) "chsh".

In MacOSX, it's a little more complicated...
You have to change it in NetInfo Manager. Go to "Macintosh HD/Applications/Utilities/NetInfo Manager" (as an admin), select "/", "users", your user ID. In the bottom pane, select the "shell" attribute, click the lock in the bottom-hand corner and enter the admin password. Edit the shell attribute to point the full path to your shell (/bin/bash is a common one, unless you've installed ksh...).

If you want to be thorough, and use the same shell in single user mode (if you hold down command-s while booting), you have to edit the files /etc/passwd and /etc/master.passwd. An easy way to do this is with the pico editor using Terminal.app. In the terminal, do:
sudo pico /etc/passwd
and
sudo pico /etc/master.passwd

Find your username, and on the last line, you'll have to change your shell manually from /bin/csh to whatever you want (/bin/bash, etc...). You can use the chsh commandin MacOSX, but it doesn't update both files.

Let me know if you have any questions.
  #4 (permalink)  
Old 11-13-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Oops, I almost forgot, you can get the "real" ksh from AT&T...
Mandrake comes with pdksh, a ksh clone, and MacOSX doesn't come with one.
Here is a direct link to Ksh93 at ATT.com:
http://www.research.att.com/~gsf/dow....darwin.ppc.gz

Once it's unpacked on OSX (Stuffit usually does it automatically), you can move it to /bin with the Terminal.

The Linux standalone is here:
http://www.research.att.com/~gsf/dow....linux.i386.gz

It should work the same way...

Again, please post back with any problems or questions...
  #5 (permalink)  
Old 11-13-2002
WIntellect's Avatar
WIntellect WIntellect is offline
Registered User
  
 

Join Date: Sep 2002
Location: United Kingdom
Posts: 170
In FreeBSD - and OpenBSD if I remember correctly, type
Code:
chpass
Using your default editor type, change the line entatled "Shell" to point to the shell you want to use - then log out and log in again!
Closed Thread

Bookmarks

Tags
linux mandrake

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 01:09 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