From owner-freebsd-doc Fri Nov 15 19:24:44 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 6798B37B401 for ; Fri, 15 Nov 2002 19:24:43 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CA0043E3B for ; Fri, 15 Nov 2002 19:24:42 -0800 (PST) (envelope-from keramida@FreeBSD.org) Received: from gothmog.gr (patr530-a218.otenet.gr [212.205.215.218]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gAG3OaL0017581; Sat, 16 Nov 2002 05:24:38 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gAG3MuxY001718; Sat, 16 Nov 2002 05:24:35 +0200 (EET) (envelope-from keramida@FreeBSD.org) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gAFHHnLI027154; Fri, 15 Nov 2002 19:17:49 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 15 Nov 2002 19:17:48 +0200 From: Giorgos Keramidas To: Johan Hendriks Cc: doc@FreeBSD.org Subject: Re: su Message-ID: <20021115171748.GA24193@gothmog.gr> References: <1037280915.1183.27.camel@Larissa.double-l.lokaal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <1037280915.1183.27.camel@Larissa.double-l.lokaal> 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 : Please post questions to freebsd-questions@freebsd.org in the : future. The freebsd-doc mailing list is not for asking general : questions, but for issues related to the FreeBSD documentation. On 2002-11-14 14:35, Johan Hendriks wrote: > (i am completely new to BSD, so be gentle) > > I have a lttle question regarding the handbook. In paragraph 3.6 > Daemons, Signals, and Killing Processes you tell me to use su to > become root. 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. Reading the manual pages of both su commands (the linux and freebsd versions) should clean things up. When you call su with a - argument it makes sure that the invoked superuser shell is a login shell. The difference of what a login shell does and what it doesn't is explained in the manpage of your shell. In Linux, the root shell is GNU bash, and the differences for login invocations of bash from merely interactive invocations (when you ommit the - option, the shell is still an "interactive" shell, which accepts commands from a terminal instead of a shell script) are listed in the manual page of bash. Look for the "INVOCATION" section in the manual page of bash. In FreeBSD, the root shell is csh(1) and you can find the differences of login shells (those spawned by `su -') from the rest at the manpage of csh(1). Look for the "Startup and shutdown" section. - - Giorgos -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE91Sw81g+UGjGGA7YRAlleAJ0ccCx/+bsIAIN6/sU77fBPWedbrACgnS/Z BluAIora57SnI3SDMOci+qs= =2zqG -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message