The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
bash ssh login script modcan Shell Programming and Scripting 2 06-03-2008 10:39 PM
bash script for ssh login- big_pil Shell Programming and Scripting 5 10-29-2007 08:23 AM
Bash Shell BG_JrAdmin Linux 1 08-07-2006 10:56 AM
Bash shell ... VijayHegde Shell Programming and Scripting 2 06-06-2006 05:09 AM
cannot login after changing login shell hardesh HP-UX 4 09-13-2005 09:21 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Dec 2005
Posts: 14
How to get bash to be the login shell?

Is there a way to edit a .profile file that would let a user have bash as their login shell?

We tried adding:
exec /bin/bash --login

to the .profile, but this produced an endless loop and we could not login using that account.

Thanks!
Aaron
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Feb 2006
Posts: 8
use the usermod command to modify the user login shell like this

# usermod -s /bin/bash

which usually changes the usr's login shell and set-up the new .bashrc profile for the new login shell
Reply With Quote
  #3 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Dec 2005
Posts: 14
Thanks! So put that in the .profile statement, without the "#" sign in front? Or is that needed?
Reply With Quote
  #4 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Oct 2002
Posts: 670
Don't put that in the .profile file. Just run that command once as the user. The '#' character is just the command prompt, you don't actually type that character in.
Reply With Quote
  #5 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Dec 2005
Posts: 14
Oh, ok, I was hoping to have something to put in the profile so we could avoid running that command everytime.
Reply With Quote
  #6 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Oct 2002
Posts: 670
Quote:
Originally Posted by amheck
Oh, ok, I was hoping to have something to put in the profile so we could avoid running that command everytime.
I'm not sure I understand you. You only have to run it once.
Reply With Quote
  #7 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Dec 2005
Posts: 14
And then it remembers to use bash as the shell everytime you login? I guess maybe I'm confused, too. Looking for something this user can put in their .profile statement so they will have bash as their shell everytime they login.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0