From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 22:44:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44ABD1065672 for ; Mon, 3 Nov 2008 22:44:39 +0000 (UTC) (envelope-from frederic.perrin@resel.fr) Received: from maisel-gw.enst-bretagne.fr (maisel-gw.enst-bretagne.fr [192.44.76.8]) by mx1.freebsd.org (Postfix) with ESMTP id F19208FC1B for ; Mon, 3 Nov 2008 22:44:38 +0000 (UTC) (envelope-from frederic.perrin@resel.fr) Received: from localhost (localhost [127.0.0.1]) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 847F819D3E; Mon, 3 Nov 2008 23:44:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at resel.fr Received: from maisel-gw.enst-bretagne.fr ([127.0.0.1]) by localhost (mercure.adm.maisel.enst-bretagne.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LymWz2V7FaJd; Mon, 3 Nov 2008 23:44:30 +0100 (CET) Received: from chameau.maisel.enst-bretagne.fr (chameau.maisel.enst-bretagne.fr [172.22.209.241]) (Authenticated sender: fperrin) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 8A46619D48; Mon, 3 Nov 2008 23:44:30 +0100 (CET) Received: by chameau.maisel.enst-bretagne.fr (Postfix, from userid 1001) id 558EDB826; Mon, 3 Nov 2008 23:44:28 +0100 (CET) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= To: Fred Condo Organization: =?utf-8?Q?R=C3=A9seau?= des =?utf-8?B?w4lsw6h2ZXM=?= References: <86mygklilz.fsf@chameau.maisel.enst-bretagne.fr> <6F644950-947E-4D7E-85D7-E992E2A80A8D@quinn.com> Date: Mon, 03 Nov 2008 23:44:27 +0100 In-Reply-To: <6F644950-947E-4D7E-85D7-E992E2A80A8D@quinn.com> (Fred Condo's message of "Fri, 31 Oct 2008 12:27:37 -0700") Message-ID: <86abcga0qc.fsf@chameau.maisel.enst-bretagne.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Behaviour of su(1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 22:44:39 -0000 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