Re: run script on logout

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



Hi,
I'm using pam_script and scripts in /etc/security/onsessionclose to do  
that job.

Install pam_script-0.1.7-1.el5.rf

add into /etc/pam.d/sshd

session    required     pam_script.so runas=root expose=1

And enjoy.


On Fri, 13 Nov 2009 14:30:01 +0100, Dave Cross <davorg@xxxxxxxxx> wrote:

> 2009/11/13 Janez Kosmrlj <postnalista@xxxxxxxxxxxxxx>:
>> 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?
>
> Dave...
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
>
>


-- 
Libor Tomsik
VIG Data s.r.o
Rychtarikova 1
326 00 Plzen
Czech Republic
+420723055117
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux