Re: bash as login shell

From: Bill Vermillion (bv_at_wjv.comREMOVE)
Date: 02/24/04


Date: Tue, 24 Feb 2004 06:45:02 GMT

In article <403ad86d$1@dnews.tpgi.com.au>,
Stuart J. Browne <stuart@promed.com.au> wrote:
>
>"David P. Lurie" <abc@def.net> wrote in message
>news:103lgk7fpboc995@corp.supernews.com...
>> 5.0.7 with all update and maintenance packs, security patches
>>
>> I would like to change the login shell to bash for both root and my
>regular
>> account, but no explicit choice for bash occurs in the drop down list on
>> Account Manager.
>>
>> A test user account was created, "/usr/bash" was entered manually for
>login
>> shell, "add shell environment files to home directory" was checked, and
>the
>> account login seems to proceed normally to a functioning bash shell. I
>had
>> previously invoked bash from a command prompt.
>>
>> The dropdown list of shell choices includes /usr/bash for the new user,
>but
>> not other users after selecting "change login shell" in Account manager.
>I
>> assume that manual entry of "/usr/bash" and checking the shell
>environment
>> option would work for previous users as well.
>>
>> Is this approach likely to cause any problems?

>For the root user, yes. The root user's shell is used for many
>things other than just a user (you should have a user with lots
>of privileges to do most admin anyway).

>As most here will advise you, don't use bash as your default
>root shell Invoke it manually, or from the root user's profile
>instead.

I recall seeing some weirdness in the past coming in to fix systems
and found the root shell had been changed to csh.

I've seen enough weirdness in bash that it's not good to put it in
for root. That being said I've put in the ksh as root shell with
no problems at all, and all the advantages. But that is just a
data point of 1 person on several systems.

Bill

-- 
Bill Vermillion - bv @ wjv . com


Relevant Pages

  • Re: bash as login shell
    ... >> I would like to change the login shell to bash for both root and my ... >> functioning bash shell. ... But I still hold that it's not adviseable to use bash as root's login shell ... You really shouldn't even use ksh as roots /etc/passwd login shell, ...
    (comp.unix.sco.misc)
  • Re: bash as login shell
    ... |>> I would like to change the login shell to bash for both root and my ... | or even as a temporary interactive shell in some cases. ...
    (comp.unix.sco.misc)
  • Re: about seting file permission by default
    ... From 'man bash', the INVOCATION section: ... "When bash is invoked as an interactive login shell, ... .profile as already suggested .bashrc. ... "When an interactive shell that is not a login shell is started, ...
    (comp.os.linux.misc)
  • Re: su 5.2.1 does not invoke bash as a login shell when stdin is from a pipe
    ... command named "foo", as the root user and from a login shell. ... version of "bash" is at fault. ...
    (comp.os.linux.misc)
  • Re: about seting file permission by default
    ... From 'man bash', the INVOCATION section: ... "When bash is invoked as an interactive login shell, ... .profile as already suggested .bashrc. ... "When an interactive shell that is not a login shell is started, ...
    (comp.os.linux.misc)