LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-12-2007, 08:31 PM   #1
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Rep: Reputation: 15
All shells feels same ??


Hi,

I installed Solaris 10 under my VMWare Workstation 5.5without problem.
But ...
I changed shell from sh to ksh and bash at the end, since I hate sh, but nothing happened. They all feel same and do not behave same way as they do on FreeNSD or Linux.
Basicaly ... no history ... cannot modify command and things like those.

Idea?
 
Old 03-13-2007, 01:40 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
How did you switch and how did you test ?
 
Old 03-13-2007, 10:30 AM   #3
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Bash lets you do history and edit command lines. Did you remember to logout and log back in after changing your shell?
 
Old 03-13-2007, 01:15 PM   #4
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Original Poster
Rep: Reputation: 15
I couldn't find chsh so I edited /etc/passwd, logoff and login back.
#echo $SHELL
/usr/bin/ksh

... but it responds as bourne shell.

Is there a command I can use to swith shell?
 
Old 03-13-2007, 02:35 PM   #5
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Quote:
Originally Posted by zivota
I couldn't find chsh so I edited /etc/passwd, logoff and login back.
#echo $SHELL
/usr/bin/ksh

... but it responds as bourne shell.

Is there a command I can use to swith shell?
I usually just type bash to switch to the bash shell. if you want it to stay you'll need to edit /etc/passwd
 
Old 03-13-2007, 03:17 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by zivota
I couldn't find chsh so I edited /etc/passwd, logoff and login back.
That's okay.
Quote:
#echo $SHELL
/usr/bin/ksh

... but it responds as bourne shell.
ksh is upward compatible with the Bourne shell, so this is no surprise.
Use "set -o vi" or "set -o emacs" to activate command editing functionality.
Alternatively, you can use /bin/bash or /bin/zsh if you expect the arrows keys to work.
Quote:
Is there a command I can use to swith shell?
As root:
Code:
# passwd -e username
 
Old 03-14-2007, 07:40 AM   #7
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
As root:
Code:
# passwd -e username
THANK YOU!

That solved another long standing problem I've had... I had a user setup to use csh instead of bash. Unfortunately, with SSGD, csh users get weird screen artifacts (part of the language switching utility). I haven't been able to switch his shell due to the fact that SMC is broken (courtesy of some Sun patch), usermod is broken (courtesy of yet another Sun patch), and vipw is giving funky errors (unknown reason). Now I know a fourth way to change the shell, and it works!
 
Old 03-14-2007, 12:28 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Thanks.

Did you install the 120051-05 patch ?

What is the vipw issue ?
 
Old 03-14-2007, 12:39 PM   #9
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
Did you install the 120051-05 patch ?

What is the vipw issue ?
I can't install 120051-05 since it requires a reboot... The server is a little on the flaky side (and it's a mission-critical server). Rebooting is rolling the dice and taking a chance on data loss (it likes to blow up while booting sometimes). I'm working with Sun support on it (it's a v20z, insert my standard anti-AMD and pro-SPARC, for mission-critical servers, rant here :-) ), but no solutions from them yet.

vipw gives me "ptmp broken" or some such thing when I try to use it. I can get in, but get the error when quitting/saving, even if I don't actually change anything!
 
Old 03-14-2007, 02:19 PM   #10
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Original Poster
Rep: Reputation: 15
`passwd -e` definitely worked!!
 
Old 03-14-2007, 03:23 PM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Dox Systems - Brian
(it's a v20z, insert my standard anti-AMD and pro-SPARC, for mission-critical servers, rant here :-) )
Actually, this bug is unrelated to the architecture, so would have hit a SPARC based server the same way.

Hmm, you have a mission critical server without a back-up solution ?

Quote:
vipw gives me "ptmp broken" or some such thing when I try to use it. I can get in, but get the error when quitting/saving, even if I don't actually change anything!
My guess is someone made a modification that upset the good old BSD vipw, like root's homedir not being / ...
 
Old 03-15-2007, 07:42 AM   #12
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
Actually, this bug is unrelated to the architecture, so would have hit a SPARC based server the same way.

Hmm, you have a mission critical server without a back-up solution ?

My guess is someone made a modification that upset the good old BSD vipw, like root's homedir not being / ...
I'm not referring to that software bug, but my overall historically poor experience with AMD based systems and crashing problems.

The mission critical server has a fairly robust data backup plan. Unfortunately, we have to accept a little potential downtime and rely on Sun service in the case of a major failure. There's just no money available to run redundant servers. The last time it crashed and we had "data loss", none of *our* data was lost, but the "data loss" was that SSGD got mangled and had to be rebuilt.

That's exactly the error that vipw is giving, but it's wrong... Root's homedir *is* /, but it's complaining that it isn't :-/
 
  


Reply



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
Ahhhhh... this feels nice.. Cards_STL LinuxQuestions.org Member Intro 2 10-31-2005 10:26 AM
SSH feels slow + Most memory in use? UnknownFear Linux - Newbie 2 06-23-2005 08:39 AM
my desktop feels really sluggish :( LadFromWales85 Slackware 9 09-06-2004 08:31 PM
Mandrake 10.0 feels generally sluggish GM287 Mandriva 5 04-07-2004 01:17 AM
Feels good to be back... atriad LinuxQuestions.org Member Intro 0 09-10-2003 04:07 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:49 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
Open Source Consulting | Domain Registration