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

write a shell program to check wheather a given string is pallindrome or not?

4 Answers  


What is scripting autism?

0 Answers  


What is shift command in shell script?

0 Answers  


What is sh in shell script?

0 Answers  


How to take input values from the user?

4 Answers  






how to create purchase order

2 Answers  


how to find weblogic version through linux cammand

1 Answers   L&T,


Is shell script a programming language?

0 Answers  


How will I insert a line "abcdef" at every 100th line of a file?

2 Answers  


What is the fastest scripting language?

0 Answers  


What are scripts in psychology?

0 Answers  


What is a shell script in windows?

0 Answers  


Categories