LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 04-13-2007, 02:16 AM   #1
songeek
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
Default shell


Hello Everyone,

Currently default shell for root is /sbin/sh and if i would like to change the default to /sbin/bash

how can i go about doing this,

and also if i want to make some changes to a shell permanently i have to usually incorporate changes to either .bashrc or .profile file isnt it ?

I am sorry I know i am a bit vague but dont really know better way to put things

Thanks in Advance
 
Old 04-13-2007, 03:13 AM   #2
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
You can change shell in /etc/passwd (http://www.roble.com/docs/sol_root_shell.html)

Check out /etc/profile || /etc/skel/


Ole
 
Old 04-13-2007, 03:38 AM   #3
cseanburns
Member
 
Registered: Nov 2003
Distribution: Debian
Posts: 117

Rep: Reputation: 17
Instead of messing with the /etc/passwd file, you can use the 'chsh' command:

> chsh

See the manpage fmi.

> man chsh

You'll need to know the path for bash:

> which bash

.bashrc is a good file to use. You can get all kinds of examples from searching and you most likely will have a copy of one on your system already. Check the /etc directory. I have one called /etc/bash.bashrc.

Here's more info:

http://www.faqs.org/docs/abs/HTML/files.html
 
Old 04-13-2007, 08:45 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
There is no (more) a "chsh" command under Solaris.

The closest equivalent is "passwd -e <username>".
 
Old 04-13-2007, 01:23 PM   #5
cseanburns
Member
 
Registered: Nov 2003
Distribution: Debian
Posts: 117

Rep: Reputation: 17
Quote:
Originally Posted by jlliagre
There is no (more) a "chsh" command under Solaris.

The closest equivalent is "passwd -e <username>".
Woops, I didn't realize what board I was in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No default shell jovie Linux - General 4 07-13-2006 09:36 AM
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 07:29 AM
'sh' shell - Actually calls legacy Bourne shell, or uses system default? Dtsazza Linux - Software 1 10-28-2005 10:20 AM
default shell aspargo Linux - Newbie 3 08-09-2004 04:38 AM
default shell IBP Linux - Newbie 2 12-21-2002 06:52 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration