From owner-freebsd-questions Sun Aug 20 16: 7:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (fedde.littleton.co.us [216.17.174.44]) by hub.freebsd.org (Postfix) with ESMTP id 48B9937B43C for ; Sun, 20 Aug 2000 16:07:52 -0700 (PDT) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.11.0/8.11.0.Beta3) with ESMTP id e7KN7nj00906; Sun, 20 Aug 2000 17:07:49 -0600 (MDT) Message-Id: <200008202307.e7KN7nj00906@fedde.littleton.co.us> To: Ariel Burbaickij Cc: questions@FreeBSD.ORG Subject: Re: Is it possible to discriminate between shell used in CLI andXWindowmode ? In-Reply-To: From: Chris Fedde Date: Sun, 20 Aug 2000 17:07:49 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 20 Aug 2000 19:59:38 +0200 (MET DST) Ariel Burbaickij wrote: +------------------ | On Sun, 20 Aug 2000, Chris Fedde wrote: | > 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 ? | > +------------------ | > 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? +------------------ Tell me a story about how you'd like this to work. I can see several ways that it might be setup but each has a slightly different "feel" Are you running X our of xdm or are you starting it with startx? When you start X are you running as yourself or as root? What window manager are you using? When you access root are are you starting su in an existing window or do you want a new window to pop up with root bash in it? I think that there are a lot of questions to think through before you can get a simple answer. good luck chris -- Chris Fedde 303 773 9134 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message