[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to mail the name of the user that logged off?



At 2:25 AM -0600 9/25/07, Frank Cox wrote:
>On Tue, 25 Sep 2007 01:19:51 -0700
>Brian Mury <brianmury alumni uvic ca> wrote:
>
>> That would work, so long as the user doesn't modify ~/.bash_logout.
>
>chown root.root .bash_logout
>chmod 444 .bash_logout
>cp .bash_logout /etc/skel
>
>You're off to the races.

The user can just rm .bash_logout and make a new one.  Try it.

I suspect a working answer might involve PAM, session, and pam_exec.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson georgeanelson com>
      '                              <http://www.georgeanelson.com/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]