Change the default shell from bash to ksh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Change the default shell from bash to ksh
# 1  
Old 11-22-2008
Change the default shell from bash to ksh

Currently my default shell is bash.How can i change itto ksh...
# 2  
Old 11-22-2008
edit /etc/passwd.
# 3  
Old 11-22-2008
Code:
usermod -s /bin/ksh username

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change directory within a bash shell script

Hi, I have been trying to execute the below command by changing directory and then copying contents of one directory to another by doing some file name manipulations in between. However this isnt working since as soon as the statement completes it goes back to the original folder. Can someone... (5 Replies)
Discussion started by: HikingLife
5 Replies

2. Shell Programming and Scripting

How to run ksh script in bash shell?

Hi All, I have few bash shell scripts which depends on one Ksh shell script. When i run bash shell scripts, it shows error as bad interpretor : ksh no such bad file or directory. When i tried to install ksh shell, it is not downloading too. If I remove !/bin/ksh command in starting line of the... (14 Replies)
Discussion started by: Karthik03
14 Replies

3. Shell Programming and Scripting

how can I export an alias and use it in any shell that I want to switch to like bash, ksh

None of the aliases that I set are available if I switch to a different shell. How can I export aliases and make them available in any shell that I switch to like ksh or bash ? I tried these $>alias godata='cd /home/kc/app/data' $>alias -x godata='cd /home/kc/app/data' $>alias |... (2 Replies)
Discussion started by: kchinnam
2 Replies

4. Solaris

Can't change default shell

Hello, I've changed the shell for user jack in /etc/passwd to ksh but when I log in it's still saying the shell is bash. Any help much appreciated (4 Replies)
Discussion started by: Grueben
4 Replies

5. Shell Programming and Scripting

Automatically change to Bash shell after login

Hi men, I think this must be a very common job. "How could to Automatically change to Bash shell after login and then jail user can only using this shell". I want monitor user works.However it just only effect on Bash shell. Consequently if the user change the shell it will be worthless. ... (4 Replies)
Discussion started by: tien86
4 Replies

6. Shell Programming and Scripting

how to change shell from BASH to C

hi all, how can i change my shell from BASH to C shell? i am using cygwin. (3 Replies)
Discussion started by: npatwardhan
3 Replies

7. Shell Programming and Scripting

Change default shell

Hi all I am a total newbie at anything to do with shells or any form of scripting Unix/Linux etc. I have been trying to run through a tutorial on scripting but it requires the use of sh. My FreeNAS(FreeBSD) test box running the latest nightly build as an embedded install on CF card has csh as... (14 Replies)
Discussion started by: npaisnel
14 Replies

8. Shell Programming and Scripting

bash and ksh: variable lost in loop in bash?

Hi, I use AIX (ksh) and Linux (bash) servers. I'm trying to do scripts to will run in both ksh and bash, and most of the time it works. But this time I don't get it in bash (I'm more familar in ksh). The goal of my script if to read a "config file" (like "ini" file), and make various report.... (2 Replies)
Discussion started by: estienne
2 Replies

9. UNIX for Dummies Questions & Answers

Change to ksh shell

Hi everyone: Mi default shell is sh, i need to set the TMOUT variable so i need to change the shell to ksh, I change the /etc/profile file as follows, but when i do an echo $0 stll sh been the shell: # more /etc/profile # # (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC. # ALL RIGHTS... (2 Replies)
Discussion started by: irasela
2 Replies

10. Shell Programming and Scripting

How can I change my default shell

hi ; Right now my default shell on our school system is : /bin/ksh but i want to change it to another shell. There is also bash shell installed in the system as : /bin/bash So, how can I change my default shell to bash shell? Or maybe any other shell? (17 Replies)
Discussion started by: milhan
17 Replies
Login or Register to Ask a Question