How to change our default shell?

Answers were Sorted based on User's Feedback



How to change our default shell?..

Answer / siba sankar nayak

Normally the diffault shell can not be changed by user in
Solaris system. Because chsh command is not available in
Solaris environment. But one can change the default shell
in Linux environment by using following command.

chsh -s /bin/ksh
After issuing this command it will ask for passeord and if
password is given successfully then default shell will be
changed. Here you have to give the full path of shell.

Regards
Siba

Is This Answer Correct ?    7 Yes 0 No

How to change our default shell?..

Answer / balaji t

Using 'chsh'

chsh -s <shell_name>

Is This Answer Correct ?    3 Yes 1 No

How to change our default shell?..

Answer / aditya

for root using sam define shell u want to use.
for temporary
user can change using chsh command

Is This Answer Correct ?    0 Yes 0 No

How to change our default shell?..

Answer / tony

The real answer may be, to ask whoever has access to ROOT, to set your default Shell to another one. He or she should not do that, at least before asking you : why ?
Additionally, he would still be reluctant of making any changes, because of the impact it can have.
In normal situations, the correct Shell is setup at user setup, and is never changed. Command to do that are USERADD and USERMOD (and other I'm sure).

Is This Answer Correct ?    0 Yes 0 No

How to change our default shell?..

Answer / guest

By changing the environmental variable SHELL.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Shell Script Interview Questions

what is the difference between sh & bash shell?

1 Answers  


How to enable the shell to know what program should be run to interpret the script?

3 Answers  


Is shell scripting easy to learn?

0 Answers  


Which is better perl or shell scripting?

0 Answers  


What is $1 in shell scripting?

0 Answers  






How do I run a script from command prompt?

0 Answers  


How do you read arguments in a shell program - $1, $2 ..?

4 Answers  


c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

0 Answers  


Why do we write bin bash in shell scripts?

0 Answers  


What is the syntax of while loop in shell scripting?

0 Answers  


How Connect to a Database in Shell Programming?

4 Answers   Syntel,


How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.

5 Answers   Wells Fargo,


Categories