From owner-freebsd-hackers Sun Oct 6 18:57:25 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA25580 for hackers-outgoing; Sun, 6 Oct 1996 18:57:25 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA25575 for ; Sun, 6 Oct 1996 18:57:21 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id LAA29065; Mon, 7 Oct 1996 11:26:52 +0930 From: Michael Smith Message-Id: <199610070156.LAA29065@genesis.atrad.adelaide.edu.au> Subject: Re: su problem To: roberte@mep.ruhr-uni-bochum.de (Robert Eckardt) Date: Mon, 7 Oct 1996 11:26:52 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, roberte@mep.ruhr-uni-bochum.de, joerg_wunsch@uriah.heep.sax.de, freebsd-hackers@FreeBSD.org, hasty@rah.star-gate.com In-Reply-To: <199610070144.DAA02647@ghost.mep.ruhr-uni-bochum.de> from "Robert Eckardt" at Oct 7, 96 03:44:55 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Robert Eckardt stands accused of saying: > > Ok, I cancel and declare the opposite. :-) > > I tested this with every system/version and it worked everywhere > except on FreeBSD. > Q: Why ? > A: I use /bin/sh as login shell (for historical reasons :-) and call > in .profile: > [...] > tcsh > exit This is immeasurably bogus. Note that you are not passing any of the arguments to sh on to tcsh. If you want tcsh's features, use tcsh. If you want a login that uses sh for scripting, create another user with the same uid and gid but with a different name and shell. (we do this so that there is a single login that owns all the daemons but has a tolerable shell for non-literate users.) > Robert -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[