From owner-freebsd-questions Mon Sep 21 17:26:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA27837 for freebsd-questions-outgoing; Mon, 21 Sep 1998 17:26:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jason04.u.washington.edu (jason04.u.washington.edu [140.142.78.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA27793 for ; Mon, 21 Sep 1998 17:26:19 -0700 (PDT) (envelope-from jcwells@u.washington.edu) Received: from saul10.u.washington.edu (root@saul10.u.washington.edu [140.142.13.73]) by jason04.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with ESMTP id RAA21082; Mon, 21 Sep 1998 17:25:47 -0700 Received: from S8-37-26.student.washington.edu (S8-37-26.student.washington.edu [128.208.37.26]) by saul10.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with SMTP id RAA06849; Mon, 21 Sep 1998 17:25:47 -0700 (PDT) Date: Tue, 22 Sep 1998 00:25:55 +0000 (GMT) From: "Jason C. Wells" X-Sender: jason@s8-37-26.student.washington.edu Reply-To: "Jason C. Wells" To: Patrick Gardella cc: Ghulum Dastgir , freebsd-questions@FreeBSD.ORG Subject: RE: shells, users and X 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 On Mon, 21 Sep 1998, Patrick Gardella wrote: >On 21-Sep-98 Ghulum Dastgir wrote: >> well here goes: >> >> 1. I've installed X-windows on my FBSD installation then decided to >> change my root shell from /bin/csh to /bin/bash. After editing with vipw I >> found I couldn't access >> X-windows anymore i.e. if I enter startx: it says command not found. >> How can I fix this as startx was working previously with csh? > >bash is not in /bin, but in /usr/local/bin/bash, so it can't find it in /bin. >Change the path, and it'll work. As a side note, it is unadvisable to make root's shell bash in /etc/passwd. If you have any trouble with the /usr filesystem you will be STUCK, STUCK, STUCK. I learned this the hard way. You might spawn bash from sh in .profile after performing a check to see if /usr/local/bin/bash actually exists. This will get you bash during login if it's there, but will let you use sh if bash is not there. This will save you the agony and humiliation of having to break out the FIXIT disc. Catchya Later, | UW Mechanical Engineering Jason Wells | http://weber.u.washington.edu/~jcwells/ | 206-633-5994 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message