Setting the shell


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Setting the shell
# 1  
Old 07-20-2006
Setting the shell

How can I make my default shell to be bash?

I tried adding:
/bin/bash

to my .profile, but that had no effect. What did I do wrong?

Thanks!
# 2  
Old 07-20-2006
Try running the chsh command. That will allow you to change your shell. However, not all systems have this command. If you dont, you will have to ask your sysadmin to change your default shell for you.

Adding /bin/bash to the .profile will execute the shell, but won't make it your default shell.
# 3  
Old 07-20-2006
Just edit /etc/passwd with vi, look for your username and change the default shell to /bin/bash. :wq and you're done. Smilie
# 4  
Old 07-20-2006
On a lot of systems the passwd command is used to change the login shell.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Setting the path permanently using shell script

I'm trying to set the path permanently through a shell script. (/opt/quest/bin:/usr/bin/lab to /.profile.) I tired using echo option like below but it doesn't work. Please suggest me the right way to do so. echo "PATH=$PATH:/opt/quest/bin:/usr/bin/lab" >> /.profile (6 Replies)
Discussion started by: pjeedu2247
6 Replies

2. UNIX for Advanced & Expert Users

Setting permissions for shell scripts

Hi, I have written a shell script which calls a java program which reads properties from a configuration file and writes to a log file for each session.However the customer wants that the user should not be able to open/edit the configuration file or the log files meaning they should not... (4 Replies)
Discussion started by: jayadrath
4 Replies

3. Shell Programming and Scripting

Probelm setting a variable to $* in C Shell

Trying to put all command line arguments to the script in a variable msgst01 $* does not seem to work set msgst01 = $* (2 Replies)
Discussion started by: kristinu
2 Replies

4. Shell Programming and Scripting

setting a path in bash shell

Hello all, Sorry if the question if stupid but I have no big experience with programming. I am trying to set a path to be used in a makefile.in, for installation of a Fortran code. The makefile.in contains the string $(CODE_NAME) Now, when I type in the bash shell export... (6 Replies)
Discussion started by: laura74
6 Replies

5. Shell Programming and Scripting

[PHP] Setting a Superglobal from the Shell ?

Hey, Does anyone know if it is possible to set a PHP Superglobal variable (in an Apache2 working environment) from the shell or command line? I tried to set one like this by creating a file env.php with this: <?php $_ENV = 'YEAME'; ?> And I executed as root with: php env.php ... (0 Replies)
Discussion started by: Neo
0 Replies

6. UNIX for Advanced & Expert Users

Setting the default shell without using chsh

I have tcsh being set as the default shell.I would like to change to ksh. But i dont have "chsh" on my solaris box.so i added the following code to my ~/.login file if ( -f /usr/bin/ksh) then setenv SHELL /usr/bin/ksh exec /usr/bin/ksh endif But this helps me to get the ksh,i doesnot... (10 Replies)
Discussion started by: ennstate
10 Replies

7. UNIX for Advanced & Expert Users

Urgent help needed for ksh shell setting

Today I logged as root on my HP-UX server and by mistake executed below command # ksh -i vi Then onwards for every root logging the ksh shell giving wired output to every command e.g # ls kÚ .brw_history .brwpause .brwtmp : : : 1+~H4p+À+~KÑ 1+Ðè d 15kÚ 1d+~èYÑd:ðè½h|À+~èY4:àh|À+ And so... (6 Replies)
Discussion started by: zing_foru
6 Replies

8. Shell Programming and Scripting

Is this a shell setting problem?

I have a question regarding shell settings. I have one Sun server with Solaris 9 and Oracle 10g R2 on it. DB is up running well. I created a script to start DB automatically when server reboot. It didn't work. I manually run dbstart under $ORACLE_HOME/bin, the server return message like:" dbstart:... (7 Replies)
Discussion started by: duke0001
7 Replies

9. Shell Programming and Scripting

Setting value of Shell variable from within ISQL

Hi Guys, Need help. I am using ISQL inside a shell script. Is there a way to set the value of shell script variable from inside the ISQL code. I do not want to write the results from the SQL to an output file. Please let me know. Regards, Tipsy. (3 Replies)
Discussion started by: tipsy
3 Replies

10. UNIX for Dummies Questions & Answers

Setting up shell variables

Hi everyone, I am trying to set up the .profile for a user I have just created. In trying to set up the shell variables, I want to make the shell be korn shell (default shell i believe is Borne shell), so, this is what I did: SHELL=/usr/bin/ksh export SHELL Whenl executing the .profile,... (1 Reply)
Discussion started by: rachael
1 Replies
Login or Register to Ask a Question