Date: Mon, 03 Nov 2008 23:44:27 +0100 From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= <frederic.perrin@resel.fr> To: Fred Condo <fcondo@quinn.com> Cc: freebsd-questions@freebsd.org Subject: Re: Behaviour of su(1) Message-ID: <86abcga0qc.fsf@chameau.maisel.enst-bretagne.fr> In-Reply-To: <6F644950-947E-4D7E-85D7-E992E2A80A8D@quinn.com> (Fred Condo's message of "Fri, 31 Oct 2008 12:27:37 -0700") References: <86mygklilz.fsf@chameau.maisel.enst-bretagne.fr> <6F644950-947E-4D7E-85D7-E992E2A80A8D@quinn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Vendredi 31 =C3=A0 20:27, Fred Condo a =C3=A9crit : > Use this syntax (both equivalent): > su - root > su -l root > > You do have to specify the user with -l. Perhaps the man page could > clarify that. I read the first line that says "The su utility requests appropriate user credentials via PAM and switches to that user ID (the default user is the superuser)" as "'su -' and 'su - root' are equivalent". su -l root as the expected behaviour (resetting $LOGNAME to $USER), thanks a lot. > On Oct 31, 2008, at 11:33 AM, Fr=C3=A9d=C3=A9ric Perrin wrote: >> As a side question, is it considered bad practice to set root's shell >> and locales to something else than the default ? --=20 Fred
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86abcga0qc.fsf>