Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2000 16:16:06 -0300 (ADT)
From:      Theo Bell <freebsd@cfdnet.me.tuns.ca>
To:        Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de>
Cc:        Chris Fedde <chris@fedde.littleton.co.us>, questions@FreeBSD.ORG
Subject:   Re: Is it possible to discriminate between shell used in CLI andXWindowmode ? 
Message-ID:  <Pine.BSF.4.21.0008201613490.30570-100000@cfdnet.me.tuns.ca>
In-Reply-To: <Pine.GSO.4.10.10008201957260.5840-100000@sun34>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

If you are running bash as the user you are su'ing from, use:
su -m

see 'man su'

The -m option leaves your environment and shell unchained.

HTH

Theo



> > On Sun, 20 Aug 2000 17:39:38 +0200 (MET DST)  Ariel Burbaickij wrote:
> >  +------------------
> >  | Concrete: I want to leave csh  as root shell on the console and work as
> >  | root with bash in X Window is it somehow managable ?
> >  | 
> >  | Regards
> >  +------------------
> > 
> > start an xterm then run "su -" in it, finaly run "bash --login".
>                                                     ^^^^^^^^^^^^^   
> > At that point you will have a bash shell as user root and run all root's
> > .profile and .bashrc stuff
>    This is the point:probably , I was not precise enough.How to do it
>    without typing bash --login.Let us try another way:How to set bash as
>    root's default shell while in X?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008201613490.30570-100000>