dex11
asked on
change default shell
hi all,
I am just a unix(solaris) shell user(not root) and i login via telnet and everytime i login i get ksh as my default shell.I was wondering if i could change it to bash instead.I cannot change /etc/passwd file line for changing it as i am not a super user.Is there any other way to do it?
Thank you.
I am just a unix(solaris) shell user(not root) and i login via telnet and everytime i login i get ksh as my default shell.I was wondering if i could change it to bash instead.I cannot change /etc/passwd file line for changing it as i am not a super user.Is there any other way to do it?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In your .profile, add:
[ -x /usr/bin/bash ] && exec /usr/bin/bash
Adjust the path above if needed to where bash is installed
[ -x /usr/bin/bash ] && exec /usr/bin/bash
Adjust the path above if needed to where bash is installed
Tintin,
this is a short form of what I've already suggested -- unfortunately, it will not
propagate the changed shell's name to other programs that will get started
up later (like running a terminal window in X11 "xterm -ls ..."). They will still
use the former shell (or whatever has been put into the SHELL variable).
Cheers!
this is a short form of what I've already suggested -- unfortunately, it will not
propagate the changed shell's name to other programs that will get started
up later (like running a terminal window in X11 "xterm -ls ..."). They will still
use the former shell (or whatever has been put into the SHELL variable).
Cheers!
http://www.tech-faq.com/lang/ar/unix-shell.shtml
waiting for your reply