currently the default shell in my linux enviornemnt is ksh.
how to change the default shell to bash?
thanks!
currently the default shell in my linux enviornemnt is ksh.
how to change the default shell to bash?
thanks!
Try chsh
~John Arackal
change the environment variable of your shell
export SHELL=/bin/bash
make this entry in the .kshrc and
$ . .kshrc
$ echo $SHELL
/bin/bash
you are now in bash shell
That would be a very odd thing to do. Edit the line in /etc/passwd corresponding to the user for which you wish to change the shell. The last field is the login shell for the user.
Agreed, but the user must have the root privelage to make the required changes in the /etc/passwd file.
thank you all!
i tried ypchsh. it works.
usermod -s /path/to/shell username
another way you can change desired shell if you have root permissions
Edit the /etc/passwd file
Just navigate your user accout in /etc/passwd file ( i took skanth user for ex.)
skanth:x:502:502::/home/anupl:/bin/bash
just change bash with csh or ksh ...etc..
rgds
sirkanth
my system is showing "command not found" for usermod and chsh , can you tell what i need to do if i want that command working.