From owner-freebsd-questions Sun Aug 20 12:16:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cfdnet.me.tuns.ca (CFDnet.me.TUNS.Ca [134.190.50.164]) by hub.freebsd.org (Postfix) with ESMTP id 7290F37B424 for ; Sun, 20 Aug 2000 12:16:43 -0700 (PDT) Received: from localhost (freebsd@localhost) by cfdnet.me.tuns.ca (8.9.3/8.9.3) with ESMTP id QAA30953; Sun, 20 Aug 2000 16:16:06 -0300 (ADT) (envelope-from freebsd@cfdnet.me.tuns.ca) Date: Sun, 20 Aug 2000 16:16:06 -0300 (ADT) From: Theo Bell To: Ariel Burbaickij Cc: Chris Fedde , questions@FreeBSD.ORG Subject: Re: Is it possible to discriminate between shell used in CLI andXWindowmode ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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