The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 03-15-2009
frozentin frozentin is offline
Registered User
  
 

Join Date: May 2008
Location: Vienna, VA + Bombay, India
Posts: 109
This works with Mac OS X 10.4.11:

Quote:
[~] # niutil -read / /users/frozentin|grep "shell"
shell: /bin/bash <--- I removed this below
[~] #
[~] # niutil -destroyval / /users/frozentin "shell" "/bin/bash" <---- this is the value of "shell" from above command
[~] # echo $?
0
[~] # niutil -insertval / /users/frozentin "shell" "/bin/ksh" 0 <---- Here "0" is the index. You want a known good shell at "0".
[~] # echo $?
0
[~] # niutil -read / /users/frozentin|grep "shell"
shell: /bin/ksh
[~] #
Take a look at these search results: http://www.google.com/search?q=niutil+-createprop+.

Take a look at this link: How do I change my default shell in Mac OS X Panther from tcsh to bash? :: Free Tech Support from Ask Dave Taylor!

Advise from Apple Support: http://support.apple.com/kb/TA27005?viewlocale=en_US

Another, from MacOSHints: http://www.macosxhints.com/article.p...20213084259198

Last edited by frozentin; 03-15-2009 at 02:15 PM.. Reason: Added niutil commands.