From owner-freebsd-questions Tue Jun 4 10:49:01 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA00563 for questions-outgoing; Tue, 4 Jun 1996 10:49:01 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA00557 for ; Tue, 4 Jun 1996 10:48:57 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0uR0Dp-000QZHC; Tue, 4 Jun 96 19:48 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id TAA13797; Tue, 4 Jun 1996 19:38:33 +0200 Message-Id: <199606041738.TAA13797@allegro.lemis.de> Subject: Re: FreeBSD question To: fqueries@jraynard.demon.co.uk (James Raynard) Date: Tue, 4 Jun 1996 19:38:33 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: <199606021446.OAA11429@jraynard.demon.co.uk> from "James Raynard" at Jun 2, 96 02:46:55 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk James Raynard writes: >> I log in as root, I cannot run X-windows via the startx command. The error >> I get is 'command not found'. However, when I log in as any other user and > > This is because the directory where the startx binary lives is not in > root's path. You can fix this by editing root's .cshrc file to add > /usr/X11R6/bin to the list of directories in the path entry. This will only help if you're using the C shell or tcsh. If you use one of the Bourne family, put it in your .profile file instead. You should have something like PATH=/bin:/usr/bin:/usr/local/bin:/usr/contrib/bin:/usr/X11R6/bin in there. If you use csh, the entry in your .cshrc should look like set path=(/bin /usr/bin /usr/local/bin /usr/contrib/bin /usr/X11R6/bin) Greg