Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Change your shell in Panther via chsh UNIX
How things can change in the space of a year ... back then, this hint gave a NetInfo workaround for changing the default shell in OS X. Thanks to last month's Macworld (the Geek Factor column, page 88), we now have an easier, older way: the chsh command.

chsh -s /bin/bash username

will permanently change the default shell for the named user.

    •    
  • Currently 3.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[7,130 views]  

Change your shell in Panther via chsh | 6 comments | Create New Account
Click here to return to the 'Change your shell in Panther via chsh' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change your shell in Panther via chsh
Authored by: kirkmc on Mar 01, '04 11:36:26AM

I wrote that article for Macworld... I thought I had submitted the hint here a while ago. Rob? Did I forget?

Kirk



[ Reply to This | # ]
left hand, right hand...
Authored by: mikerose on Mar 01, '04 01:04:27PM

Sorry to inadvertently scoop you, Kirk. No offense intended. I had to search my brain for where I saw the chsh hint after someone here in the office was using the older NetInfo method to change shells, and once I found it I noticed that MOXhints was still listing the old way.

Most amusingly, your column and Rob's column ran back-to-back in that issue of Macworld. Nobody reads anymore...



[ Reply to This | # ]
Change your shell in Panther via chsh
Authored by: Crusty on Mar 01, '04 02:16:27PM

I've tried using both the NetInfo and chsh methods, but my default shell is always tcsh. Why won't it switch over and stay over?



[ Reply to This | # ]
Change your shell in Panther via chsh
Authored by: jporten on Mar 01, '04 03:19:37PM

My first guess is that you have some Unix command running in your shell inits that you put there years ago that's doing this. Check your .rc's.



[ Reply to This | # ]
Change your shell in Panther via chsh
Authored by: lowy on Mar 01, '04 04:18:49PM

Your Terminal Preferences probably is set to execute the command /bin/tcsh when creating a new terminal window. Change this to "Execute the default login shell..." and the shell you selected with chsh should work.



[ Reply to This | # ]
Change your shell in Panther via chsh
Authored by: Crusty on Mar 01, '04 10:44:10PM

I use iTerm as my default terminal app. When I checked the Shell preferences, its initial command was "login -fp myusername". Once I changed that to "/bin/bash" everything works fine!

Thanks a lot!



[ Reply to This | # ]