Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-08-2010
Esa Esa is offline
Registered User
 

Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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 05:14 PM..
Sponsored Links
  #2  
Old 02-08-2010
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,466
Thanks: 0
Thanked 1 Time in 1 Post
Add an "exec bash" to the end of your .profile.
  #3  
Old 02-09-2010
Registered User
 

Join Date: May 2008
Location: SINGAPORE.. The "FINE" City
Posts: 2,663
Thanks: 0
Thanked 6 Times in 6 Posts
You can change your shell in the /etc/passwd file (ask your administrator to change for you)
  #4  
Old 02-09-2010
ɹǝsn sıɹɐlosuǝdo
 

Join Date: Dec 2007
Location: Paris
Posts: 2,312
Thanks: 0
Thanked 24 Times in 22 Posts
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
Esa Esa is offline
Registered User
 

Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
korn shell .kshrc in sunos shahnazurs Shell Programming and Scripting 3 12-24-2008 04:26 AM
How to Start a Shell as Login shell instead of ordinary shell Sivaswami Linux 3 07-01-2008 01:52 PM
Unix Korn Shell Array Issue (SunOS) Janus Shell Programming and Scripting 5 11-21-2006 07:19 PM
SunOS shell help stevefox Shell Programming and Scripting 2 07-06-2006 05:09 AM
Migration of binary file from Sunos 5.8 to Sunos 5.9 Arvind Maurya UNIX for Advanced & Expert Users 1 07-12-2005 06:23 AM



All times are GMT -4. The time now is 07:39 AM.