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