Currently default shell for root is /sbin/sh and if i would like to change the default to /sbin/bash
how can i go about doing this,
and also if i want to make some changes to a shell permanently i have to usually incorporate changes to either .bashrc or .profile file isnt it ?
I am sorry I know i am a bit vague but dont really know better way to put things
Thanks in Advance
You can change shell in /etc/passwd (http://www.roble.com/docs/sol_root_shell.html)
Check out /etc/profile || /etc/skel/
Instead of messing with the /etc/passwd file, you can use the 'chsh' command:
See the manpage fmi.
> man chsh
You'll need to know the path for bash:
> which bash
.bashrc is a good file to use. You can get all kinds of examples from searching and you most likely will have a copy of one on your system already. Check the /etc directory. I have one called /etc/bash.bashrc.
Here's more info:
There is no (more) a "chsh" command under Solaris.
The closest equivalent is "passwd -e <username>".
|All times are GMT -5. The time now is 12:03 AM.|