$SHELL for root
In Solaris 10, I can change the shell for root from /sbin/sh to /bin/bash:
usermod -s /bin/bash root
It will not cause any issues if I cannot log into /bin/bash for some reason. I will be automatically thrown into /sbin/sh then.
Using /bin/bash turns on autocomplete for commands and lists my previous commands with upper arrow key. Nice!
* still better to do "exec /usr/bin/bash" in .profile
usermod -s /bin/bash root
It will not cause any issues if I cannot log into /bin/bash for some reason. I will be automatically thrown into /sbin/sh then.
Using /bin/bash turns on autocomplete for commands and lists my previous commands with upper arrow key. Nice!
* still better to do "exec /usr/bin/bash" in .profile
0 Comments:
Post a Comment
<< Home