[1726] in athena10

home help back first fref pref prev next nref lref last post

Re: sudo's lecture_file for "You're in a chroot!"

daemon@ATHENA.MIT.EDU (Evan Broder)
Mon Mar 16 17:27:50 2009

Message-ID: <49BEC41A.1090809@mit.edu>
Date: Mon, 16 Mar 2009 17:26:50 -0400
From: Evan Broder <broder@MIT.EDU>
MIME-Version: 1.0
To: Xavid <xavid@mit.edu>
CC: Geoffrey Thomas <geofft@mit.edu>, Greg Hudson <ghudson@mit.edu>,
   William Cattey <wdc@mit.edu>, debathena@mit.edu
In-Reply-To: <17D50F92-952E-4C31-BEB9-31645CA87408@mit.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Xavid wrote:
>
> 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

Are you sure? I would have guessed it was based on the presence of
~/.sudo_as_admin_successful. Why else have the file?

- Evan

home help back first fref pref prev next nref lref last post