Re: bash as login shell

From: Stuart J. Browne (stuart_at_promed.com.au)
Date: 02/24/04


Date: Wed, 25 Feb 2004 08:38:31 +1100


"Bill Vermillion" <bv@wjv.comREMOVE> wrote in message
news:HtKsyK.usI@wjv.com...
> 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.

We use ksh for the root shell on all of our OSR boxes. Have been doing so
for many years without incident.

bkx



Relevant Pages

  • Re: hi all..
    ... and someone gets access your shell account, ... Only root can install an su binary. ... Of course, if I have sudo ...
    (Fedora)
  • Re: Kmail offline
    ... GUI sessions as root? ... I will not help you with problems running GUI as root. ... That was a straight copy paste from the shell it ran from. ... checking I could get it to do said the install was all right. ...
    (Fedora)
  • Re: csh as default root Shell
    ... Another source is the the FreeBSD Handbook that is available ... As for changing the root shell, it is probably not a good idea. ... Put the new root account you created farther down in the passwd file ...
    (freebsd-questions)
  • Re: "No Shell"
    ... There is simply no need to login as root - ever, ... > you don't have to guard(and spread) root's password anymore. ... And change the shell or whatever it s/he just well damn ... Other than that nothing else should depend on root shell, ...
    (comp.unix.admin)
  • Re: Newbie Questions Regarding <SU> Command & Running Periodic Updating
    ... the log in level and root level. ... The first time you suyou become root, but your shell ... the shell environment is left the same except ... sucommand is aliased to add in some other options, ...
    (freebsd-questions)