[1724] in athena10
Re: sudo's lecture_file for "You're in a chroot!"
daemon@ATHENA.MIT.EDU (Xavid)
Mon Mar 16 17:06:25 2009
Cc: Greg Hudson <ghudson@mit.edu>, William Cattey <wdc@mit.edu>,
debathena@mit.edu
Message-Id: <17D50F92-952E-4C31-BEB9-31645CA87408@mit.edu>
From: Xavid <xavid@MIT.EDU>
To: Geoffrey Thomas <geofft@mit.edu>
In-Reply-To: <alpine.DEB.2.00.0903161650250.15256@opus.mit.edu>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v930.3)
Date: Mon, 16 Mar 2009 16:59:49 -0400
On 2009/03/16, at 16:53, Geoffrey Thomas wrote:
> The documentation is not clear, but from reading the code it looks
> like sudo checks whether it's the first time you've run sudo on that
> machine ... in fact, because of the chroots, you should get warned
> the first time you run it in each session. Unfortunately, I don't
> have time to test this right now.
I believe sudo decides whether to lecture based on whether you appear
in /var/run/sudo/, which would mean you'd get lectured once per login
in a cluster under our current setup.
~Xavid