[CentOS] run script on logout

2009-11-13 Thread R P Herrold
On Fri, 13 Nov 2009, Janez Kosmrlj wrote: > Does anyone have an idea how to run a script when the user logs out. same answer as last week: check out inotify -- Russ herrold ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listi

Re: [CentOS] run script on logout

2009-11-13 Thread Les Mikesell
John Doe wrote: > From: Janez Kosmrlj >> 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. > > bash man: >A login shell is one whose first character of argument zero is a -, or >one sta

Re: [CentOS] run script on logout

2009-11-13 Thread John Doe
From: Janez Kosmrlj >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. bash man: A login shell is one whose first character of argument zero is a -, or one started with the --login option.

Re: [CentOS] run script on logout

2009-11-13 Thread Libor Tomsik
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 sessionrequired pam_script.so runas=root expose=1 And enjoy. On Fri, 13 Nov 2009 14:30:01 +0100, Dave Cross wrote: > 2009/11/13 Janez Kos

Re: [CentOS] run script on logout

2009-11-13 Thread Dave Cross
2009/11/13 Janez Kosmrlj : > 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 wa

[CentOS] run script on logout

2009-11-13 Thread Janez Kosmrlj
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. Thanx Janez ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos