RE: [osol-discuss] Re: BASH as root shell

2007-05-31 Thread a b
How exactly is that any better? Just because the executable bit is set on a file, it doesn't mean that executing it is actually going to work, and now the fallback to /sbin/sh is broken too. First, whoever implements the [ -x /bin/tcsh ] *knows*, in advance, that that is where the shell

Re: [osol-discuss] Re: BASH as root shell

2007-05-31 Thread Casper . Dik
First, whoever implements the [ -x /bin/tcsh ] *knows*, in advance, that that is where the shell is, and that it is executable. -x is just a sanity test, in order to be able to adapt to circumstances as much as possible. In those cases that the dynamic linker failed (corrupted or no libraries)

RE: [osol-discuss] Re: BASH as root shell

2007-05-31 Thread a b
First, whoever implements the [ -x /bin/tcsh ] *knows*, in advance, that that is where the shell is, and that it is executable. -x is just a sanity test, in order to be able to adapt to circumstances as much as possible. In those cases that the dynamic linker failed (corrupted or no

Re: [osol-discuss] Re: BASH as root shell

2007-05-31 Thread Rob McMahon
a b wrote: In those cases that the dynamic linker failed (corrupted or no libraries) on Solaris 9, the profile entry would possibly cause a successful exec but tcsh would then immediately die. Root would then be kicked out again. You can use something like: if [ -x /bin/tcsh ]

Re: [osol-discuss] Re: BASH as root shell

2007-05-29 Thread Casper . Dik
Well, sort of. Once you start JDS you're greeted by a popup window that asks you to add a user to the system. I did just that: name, full name and privileges. Without asking I was given a bash shell ... Most every day users prefer bash. That's a fact. No, that's opinion. Most everyday

[osol-discuss] Re: BASH as root shell

2007-05-29 Thread UNIX admin
Well, sort of. Once you start JDS you're greeted by a popup window that asks you to add a user to the system. I did just that: name, full name and privileges. Without asking I was given a bash shell ... WTF? Is this the newest Nevada? I have snv_61 and I don't remember seeing anything like

Re: [osol-discuss] Re: BASH as root shell

2007-05-29 Thread Ceri Davies
On Wed, May 23, 2007 at 06:08:34AM -0700, UNIX admin wrote: How can I make BASH the root's default shell? Please, pretty please with sugar on top, don't modify the root's SHELL. Even though nothing *should* break, it could. Instead, modify /.profile: Shell=/bin/tcsh Options=-l if

Re: [osol-discuss] Re: BASH as root shell

2007-05-29 Thread Calum Benson
On Tue, 2007-05-29 at 01:28 -0700, UNIX admin wrote: Well, sort of. Once you start JDS you're greeted by a popup window that asks you to add a user to the system. I did just that: name, full name and privileges. Without asking I was given a bash shell ... WTF? Is this the newest

Re: [osol-discuss] Re: BASH as root shell

2007-05-29 Thread Alan Coopersmith
UNIX admin wrote: Well, sort of. Once you start JDS you're greeted by a popup window that asks you to add a user to the system. I did just that: name, full name and privileges. Without asking I was given a bash shell ... WTF? Is this the newest Nevada? I have snv_61 and I don't remember seeing

[osol-discuss] Re: BASH as root shell

2007-05-28 Thread UNIX admin
Why would you want to use bash? Because you know it from Linux? I'd take the most advanced shell - zsh. Not a bad choice. zsh is very powerful, and certainly as advanced or better than tcsh. PS: I really don't understand why the user's shell in OpenSolaris is bash. What was the motivation

Re: [osol-discuss] Re: BASH as root shell

2007-05-28 Thread Joerg Schilling
Ian Murdock [EMAIL PROTECTED] wrote: If OpenSolaris/Indiana moves to an Ubuntu/MacOS X style always log in as a normal user, prompt for the root password when a command needs root (implemented using sudo on Ubuntu, not sure about MacOS X), does the root shell issue not become moot? I.e., the

Re: [osol-discuss] Re: BASH as root shell

2007-05-28 Thread Martin Bochnig
Ian Murdock [EMAIL PROTECTED] wrote: If OpenSolaris/Indiana moves to an Ubuntu/MacOS X style always log in as a normal user, prompt for the root password when a command needs root (implemented using sudo on Ubuntu, not sure about MacOS X), does the root shell issue not become moot?

Re: [osol-discuss] Re: BASH as root shell

2007-05-28 Thread Martin Bochnig
Ian Murdock [EMAIL PROTECTED] wrote: If OpenSolaris/Indiana moves to an Ubuntu/MacOS X style always log in as a normal user, prompt for the root password when a command needs root (implemented using sudo on Ubuntu, not sure about MacOS X), does the root shell issue not become moot?

Re: [osol-discuss] Re: BASH as root shell

2007-05-28 Thread Martin Bochnig
Shruk. Solaris is secure by default. The opposite had been true until a few months ago. And I mean the previously intended behavior (all ports open / services running), I'm not talking about the telnet backdoor, such a thing can always happen. No, but Solaris systems just had not been

Re: [osol-discuss] Re: BASH as root shell

2007-05-28 Thread Moinak Ghosh
Ian Murdock wrote: On 5/26/07, Gerard Nualla [EMAIL PROTECTED] wrote: I do admit that Solaris is a state of the art UNIX system, that is why I am making myself very comfortable.. For now, I am getting used to using SH as the root shell, :D Well, it really takes a lot of practice.. :D However,

[osol-discuss] Re: BASH as root shell

2007-05-28 Thread Nicolas Linkert
Why would you want to use bash? Because you know it from Linux? I'd take the most advanced shell - zsh. Not a bad choice. zsh is very powerful, and certainly as advanced or better than tcsh. PS: I really don't understand why the user's shell in OpenSolaris is bash. What was the

Re: [osol-discuss] Re: BASH as root shell

2007-05-28 Thread Martin Bochnig
Well, sort of. Once you start JDS you're greeted by a popup window that asks you to add a user to the system. I did just that: name, full name and privileges. Without asking I was given a bash shell ... Most every day users prefer bash. That's a fact. If you feel you are too professional

Re: [osol-discuss] Re: BASH as root shell

2007-05-28 Thread Shawn Walker
On 27/05/07, Nicolas Linkert [EMAIL PROTECTED] wrote: Why would you want to use bash? Because you know it from Linux? I'd take the most advanced shell - zsh. PS: I really don't understand why the user's shell in OpenSolaris is bash. What was the motivation behind that? It has good defaults,

Re: [osol-discuss] Re: BASH as root shell

2007-05-27 Thread Ian Murdock
On 5/26/07, Gerard Nualla [EMAIL PROTECTED] wrote: I do admit that Solaris is a state of the art UNIX system, that is why I am making myself very comfortable.. For now, I am getting used to using SH as the root shell, :D Well, it really takes a lot of practice.. :D However, I do understand

Re: [osol-discuss] Re: BASH as root shell

2007-05-27 Thread Shawn Walker
On 27/05/07, Ian Murdock [EMAIL PROTECTED] wrote: On 5/26/07, Gerard Nualla [EMAIL PROTECTED] wrote: I do admit that Solaris is a state of the art UNIX system, that is why I am making myself very comfortable.. For now, I am getting used to using SH as the root shell, :D Well, it really takes

Re: [osol-discuss] Re: BASH as root shell

2007-05-27 Thread Ignacio Marambio Catán
On 5/27/07, Shawn Walker [EMAIL PROTECTED] wrote: On 27/05/07, Ian Murdock [EMAIL PROTECTED] wrote: On 5/26/07, Gerard Nualla [EMAIL PROTECTED] wrote: I do admit that Solaris is a state of the art UNIX system, that is why I am making myself very comfortable.. For now, I am getting used to

[osol-discuss] Re: BASH as root shell

2007-05-27 Thread Nicolas Linkert
Why would you want to use bash? Because you know it from Linux? I'd take the most advanced shell - zsh. PS: I really don't understand why the user's shell in OpenSolaris is bash. What was the motivation behind that? This message posted from opensolaris.org

[osol-discuss] Re: BASH as root shell

2007-05-26 Thread Gerard Nualla
I do admit that Solaris is a state of the art UNIX system, that is why I am making myself very comfortable.. For now, I am getting used to using SH as the root shell, :D Well, it really takes a lot of practice.. :D However, I do understand the risks of changing the root's default shell... :D

Re: [osol-discuss] Re: BASH as root shell

2007-05-24 Thread Doug Scott
Wow, As you say, just looking at the Anon column there is 4Kb difference. Something to drive the page scanner wild :) I would agree that ksh is a nice shell if it is actually if it is the 93 vintage. The older version though is just a little bit inefficient. Doug [EMAIL PROTECTED] time

[osol-discuss] Re: BASH as root shell

2007-05-24 Thread Richard L. Hamilton
Rich Teer wrote: On Tue, 22 May 2007, Gerard Nualla wrote: How can I make BASH the root's default shell? If you need to ask, you shouldn't be doing it! I disagree. It maybe bee that Gerard knows how to do this on lots of other unix systems but just didn't know what the

[osol-discuss] Re: BASH as root shell

2007-05-23 Thread Richard L. Hamilton
--- Gerard Nualla [EMAIL PROTECTED] wrote: How can I make BASH the root's default shell? you are new to unix are you? Actually, as of Solaris 10 or later, it should be harmless, if in excruciatingly bad taste, not to mention dumb (shouldn't be spending enough time as root for

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Chung Hang Christopher Chan
Nice. All this for a guy who apparently does not even know how to admin a unix system (developer?). I can see application developers flying over in droves. --- Richard L. Hamilton [EMAIL PROTECTED] wrote: --- Gerard Nualla [EMAIL PROTECTED] wrote: How can I make BASH the root's

[osol-discuss] Re: BASH as root shell

2007-05-23 Thread W. Wayne Liauh
And if you want more Linux-feel, install Linux on BrandZ ;-) Regards... Sean. Where can I find help in doing that? Thanks. This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

[osol-discuss] Re: BASH as root shell

2007-05-23 Thread Gerard Nualla
I would like to use BASH because it is easier to navigate (wherein you could just press the TAB key to autocomplete stuff).. I am using my machine as a development workstation, so I would like to be very comfortable with it... :D This message posted from opensolaris.org

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Steven Sim
All; Solaris used to have two separate instances of executable binaries (e.g. ifconfig, sh etc). One instance in /usr/sbin and another separate instance in /sbin The /sbin executables were statically linked and were not dependent on libraries found in /usr/lib or /lib sh or Bourne shell

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Casper . Dik
Solaris used to have two separate instances of executable binaries (e.g. ifconfig, sh etc). One instance in /usr/sbin and another separate instance in /sbin Correct. The /sbin executables were statically linked and were not dependent on libraries found in /usr/lib or /lib Not completely

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Chad Mynhier
On 5/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Perhaps Casper Dik could state the rationale behind this change of policy. I am very curious indeed. What change of policy? The reason we did away with static linking was because of the large amount of issues we had from having a thread

[osol-discuss] Re: BASH as root shell

2007-05-23 Thread UNIX admin
How can I make BASH the root's default shell? Please, pretty please with sugar on top, don't modify the root's SHELL. Even though nothing *should* break, it could. Instead, modify /.profile: Shell=/bin/tcsh Options=-l if [ -x $Shell ] then exec $Shell $Options fi And read the man page on

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Phil Harman
Yeah, and the sky might fall on our heads, right? Everyone seems agreed that nothing should break, so if and when the unexpected happens, let's just fix it. But in the meantime please stop spreading FUD. And, please, please, pretty please with copious amounts of corn syrup poured over

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Doug Scott
Steven Sim wrote: BASH also occupies more memory. But to each his or her own. I have nothing against people using BASH. I just don't recommend it as a root shell. Steve where do you get your figure here? I am curious in your benchmarks. Why does bash use more memory than sh? Doug

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Doug Scott
Doug Scott wrote: Steven Sim wrote: BASH also occupies more memory. But to each his or her own. I have nothing against people using BASH. I just don't recommend it as a root shell. Steve where do you get your figure here? I am curious in your benchmarks. Why does bash use more memory than

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Steven Sim
Doug; Listen, I do not wish to start a religious debate. As I mentioned earlier, to each his or her own. There's nothing wrong with BASH. I just don't like it just like I don't like cranberries. But I've nothing against people who like cranberries! As for BASH memory footprint, here's the

[osol-discuss] Re: BASH as root shell

2007-05-23 Thread Gerard Nualla
Yup, new to Unix.. I started with linux, that's why I'm soo used to BASH.. Im getting used to the bourne shell too... :D This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

[osol-discuss] Re: BASH as root shell

2007-05-23 Thread Gerard Nualla
I see... Let me try that TCSH too.. Gets more interesting... :D This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Chung Hang Christopher Chan
Yup, new to Unix.. I started with linux, that's why I'm soo used to BASH.. Im getting used to the bourne shell too... :D Thought so. usermod is a common command on Linux and Solaris and coupled with the fact that you have problems getting your linux to boot shows that you have not had much

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread John Plocher
Gerard Nualla wrote: I see... Let me try that TCSH too.. Gets more interesting... :D Wanting to change root's shell implies that you are logging into Solaris as root instead of using su or RBAC. In general, on Solaris, logging in as root is seen as undesirable simply because it can lead to

Re: [osol-discuss] Re: BASH as root shell

2007-05-23 Thread Moinak Ghosh
John Plocher wrote: [...] It used to be that root's shell had to be /bin/sh so that, if your /usr partition got corrupted and you had to boot without it being mounted, you could still log in single user and fix things (/usr/bin/bash wouldn't be there in that case, and root logins would fail