[CentOS] run script on logout
libor.tomsik at vigdata.eu
Fri Nov 13 13:53:31 UTC 2009
I'm using pam_script and scripts in /etc/security/onsessionclose to do
add into /etc/pam.d/sshd
session required pam_script.so runas=root expose=1
On Fri, 13 Nov 2009 14:30:01 +0100, Dave Cross <davorg at gmail.com> wrote:
> 2009/11/13 Janez Kosmrlj <postnalista at googlemail.com>:
>> Does anyone have an idea how to run a script when the user logs out.
>> I tried puting the command in the .bash_logout file, but it doesnt work.
> Of course, that's only going to work if the user is using bash as
> their shell. But, given that proviso, that's the right way to do it.
> Is anything in .bash_logout being called?
> CentOS mailing list
> CentOS at centos.org
VIG Data s.r.o
326 00 Plzen
More information about the CentOS