From owner-freebsd-doc Thu Nov 14 12:59: 8 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E6B637B401 for ; Thu, 14 Nov 2002 12:59:07 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2517743E42 for ; Thu, 14 Nov 2002 12:59:03 -0800 (PST) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc02.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021114205901.XYVU21905.sccrmhc02.attbi.com@localhost.localdomain>; Thu, 14 Nov 2002 20:59:01 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.5) with ESMTP id gAEKv3d8082002; Thu, 14 Nov 2002 12:57:03 -0800 (PST) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.5/Submit) id gAEKuvjH081999; Thu, 14 Nov 2002 12:56:57 -0800 (PST) (envelope-from swear@attbi.com) X-Authentication-Warning: localhost.localdomain: jojo set sender to swear@attbi.com using -f To: Johan Hendriks Cc: doc@freebsd.org Subject: Re: su References: <1037280915.1183.27.camel@Larissa.double-l.lokaal> From: swear@attbi.com (Gary W. Swearingen) Date: 14 Nov 2002 12:56:57 -0800 In-Reply-To: <1037280915.1183.27.camel@Larissa.double-l.lokaal> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Johan Hendriks writes: > I come from Linux and under Linux you never must do a su without the - > Is this the same under FreeBSD or is it a little typo, or something > else. In general, it not even the same under Linux! You can change your shell startup scripts so "-" is not (usually?) needed. But you're probably referring to a just-installed system, for which I don't know the answer. The answer might depend on what you need to do after starting "su". You could try comparing your environment before and after with "printenv". You should develop a shell startup script scheme suitable to your shell and to your desires for things such as the need to use "-" (or not) with "su", and change your scripts to implement it. The default shell startup scripts are simple enough that you should be able to change, test, and fix what breaks. If you don't already well understand the huge messy startup script scheme of "bash", you'll find that the scheme of FreeBSD's "sh" (and that of "pdksh") is much easier to learn well. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message