I'd reckon a simple test and exec in the initialization files would work for changing roots shell when it's safe to and continuing otherwise.
Under bourne it would probably look some thing like:
if [ -x /usr/local/bin/foosh ]; then exec /usr/local/bin/foosh else echo 'WARNING: foosh not available!' fi
As long as it has line editing, redirection, and pipes, I could care less which shell root uses. So I've never bothered to change roots shell on any of my systems ^_^
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Last edited by TerryP; 11th May 2008 at 10:42 PM.
TerryP you have read my mind . Once i have changed the users default shell to bash. Updating bash remotely crashed at some point and couldn't log in anymore.
It was easy to recover because i had physical access to the box but that thought me to use the default shell and use the code you posted in the defaults shell dot file to change it at login.
all the best,
Stop! think! ... the problem is somewhere between the monitor and chair...
"First they ignore you, then they laugh at you, then they fight you, then you win." Gandhi
links: spreadbsd syk
|Thread||Thread Starter||Forum||Replies||Last Post|
|HOWTO: Encoding // Pure Terminal // Virtual Terminal||vermaden||Guides||1||25th June 2010 08:02 AM|
|Manpage colorization on the terminal||JMJ_coder||NetBSD General||2||17th February 2009 08:17 PM|
|netbsd terminal error||jaideep_jdof||NetBSD General||1||21st November 2008 11:50 PM|
|Favorite Terminal Emulator||JMJ_coder||General software and network||23||5th November 2008 05:30 PM|
|terminal||darken||FreeBSD General||8||18th July 2008 07:12 PM|