Date: Fri, 15 Nov 2002 19:17:48 +0200 From: Giorgos Keramidas <keramida@FreeBSD.org> To: Johan Hendriks <johan@double-l.nl> Cc: doc@FreeBSD.org Subject: Re: su Message-ID: <20021115171748.GA24193@gothmog.gr> In-Reply-To: <1037280915.1183.27.camel@Larissa.double-l.lokaal> References: <1037280915.1183.27.camel@Larissa.double-l.lokaal>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <johan@double-l.nl> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021115171748.GA24193>