Link to home
Start Free TrialLog in
Avatar of dex11
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.
Avatar of Smart_Man
Smart_Man
Flag of Egypt image

ASKER CERTIFIED SOLUTION
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tintin
Tintin

In your .profile, add:

[ -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!