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 a batch file used for?

0 Answers  


If one dont know how to create a script then how he/she can use the QTP?

1 Answers  


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

0 Answers   Wells Fargo,


What are the two files of crontab command?

0 Answers  


c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory

1 Answers  


The information of the two files should be redirect to Third file in such a way that, the third file contain the information like this. 1st line in third file should be from 1st file 2nd line in Third file should be from 2nd file 3rd line in Third file should be from 1st file 4th line in Third file should be from 2nd file - - so on

2 Answers   Caritor,


What are scripts in psychology?

0 Answers  


What lives in a shell?

0 Answers  


There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A

1 Answers   Wipro,


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


In a single command how do you run the previous command in the command prompt.

5 Answers  


What is @echo off?

0 Answers  


Categories