The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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-04-2008 01:39 AM
bash script for ssh login- big_pil Shell Programming and Scripting 5 10-29-2007 12:23 PM
Bash Shell BG_JrAdmin Linux 1 08-07-2006 01:56 PM
Bash shell ... VijayHegde Shell Programming and Scripting 2 06-06-2006 08:09 AM
cannot login after changing login shell hardesh HP-UX 4 09-14-2005 12:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2006
amheck amheck is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 16
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
  #2 (permalink)  
Old 03-10-2006
com2com com2com is offline
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
  #3 (permalink)  
Old 03-10-2006
amheck amheck is offline
Registered User
  
 

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

Join Date: Oct 2002
Posts: 699
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.
  #5 (permalink)  
Old 03-10-2006
amheck amheck is offline
Registered User
  
 

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

Join Date: Oct 2002
Posts: 699
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.
  #7 (permalink)  
Old 03-10-2006
amheck amheck is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 16
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 02:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0