How to start in a bash shell everytime I logon to SunOS?


 
Thread Tools Search this Thread
Operating Systems Solaris How to start in a bash shell everytime I logon to SunOS?
# 1  
Old 02-08-2010
How to start in a bash shell everytime I logon to SunOS?

Hi

I logon to sunos boxes at work that starts in a ksh shell. I would like to login to a bash shell whenever I logon to the sunos boxes instead of having to login and type bash .

I tried editing the .profile and added SHELL= usr/bin/bash however when I login I am still in the ksh shell. I checked passwd/etc and can see that it is listed as usr/bin/ksh for my user id. I cannot change this as I do not have the rights. Is it possible to just create one s

Regards
ES

Last edited by Esa; 02-08-2010 at 06:14 PM..
# 2  
Old 02-08-2010
Add an "exec bash" to the end of your .profile.
# 3  
Old 02-09-2010
You can change your shell in the /etc/passwd file (ask your administrator to change for you)
# 4  
Old 02-09-2010
If your account is handled globally (i.e. LDAP, NIS or NIS+), you can change the shell yourself with the command:
Code:
passwd -e /bin/bash

# 5  
Old 02-09-2010
thx guys I will try to see if I can change the etc/passwd using passwd -e when I'm back at work if not I will try adding exec bash to .profile
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to start our bash shell?

Hey Guys, I am new in unix and no idea to executing command and bash shell and others shell. Suppose we want to run bash shell then how to do it, witch editor we use in my linux operating system. (7 Replies)
Discussion started by: aaditya321
7 Replies

2. Shell Programming and Scripting

Bash script to start program and answer prompts?

I'm trying to write a script the simplifies the execution of a program: After starting the program (sh ~/.mfix/model/make_mfix) I am prompted four times for options: Do you need SMP version? (y/n) Do you need DMP version? (y/n) Do you need debug version? (y/n) Force re-compilation of... (2 Replies)
Discussion started by: lanew
2 Replies

3. UNIX for Dummies Questions & Answers

shell script : log to txt and insert new line everytime

Hi, I have this script, while do ps ax|grep 5060 > log.txt echo " " sleep 1 done } I want to actually put a new line everytime the loop is executed in log.txt , but I do not know how to "embed" the echo " " inside the log.txt. (so to say... (1 Reply)
Discussion started by: peuceul
1 Replies

4. Shell Programming and Scripting

executing a shell script everytime the terminal is opened

the problem statement is Write a shell script, which gets executed the moment the user opens a terminal. It should display the message "Hello your_name, welcome to 172.16.4.120 server” How to get around this? (2 Replies)
Discussion started by: arindamlive
2 Replies

5. Shell Programming and Scripting

Automated logon within shell scripts

Hi All, I have created a server health checkup for 22 diferent ips and want to run my script from a single host server -->conduct health chekup on various servers--> Capture the deviations--> Get back all the deviations to the host server where the script was initiated. Ive checkd out ssh... (3 Replies)
Discussion started by: gemnian.g
3 Replies

6. Shell Programming and Scripting

korn shell .kshrc in sunos

Hi, My login shell is c shell I have a line in .cshrc like setenv a 1000 I have a line in .profile like ENV=$HOME/.kshrc export ENV and in my .kshrc a=10 export a I wrote one korn script #!/bin/ksh echo $a (3 Replies)
Discussion started by: shahnazurs
3 Replies

7. Linux

How to Start a Shell as Login shell instead of ordinary shell

Hi I tried with bash --login option. but the output is siva:~$ bash --login siva:~$ is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su ) Thx in advance Siva (3 Replies)
Discussion started by: Sivaswami
3 Replies

8. Shell Programming and Scripting

Unix Korn Shell Array Issue (SunOS)

Hello, I'm currently messing around with arrays for the first time in scripting (Unix Korn Shell). All I'm trying to do right now before I make things complicated is read through and print out to screen whether the read file is or is not a directory. Here is my directory: ls -l total... (5 Replies)
Discussion started by: Janus
5 Replies

9. Shell Programming and Scripting

SunOS shell help

I'm new to SunOS and I need some help. I'm trying to run the commands below inside the korn shell below on SunOS 5.8 but it does not do anything except echo ABC. No error gets displayed when running the shell. #!/bin/ksh echo ABC export ENV_1=/folder1/subfolder cd folder2 All 3... (2 Replies)
Discussion started by: stevefox
2 Replies

10. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies
Login or Register to Ask a Question