Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2008, 06:24 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
I need a script to run at user logout

I need to have a script run when a user logs out. I am trying to have some lock files delete from a common directory when the user logs out.

The users are using tcsh and we are running X11

I tried using a .logout script from a user home directory, but it would not run. I tried csh.logout in /etc, but still no luck.

I tried also running something from the /etc/gdm/PostSession/Default file.

Nothing seems to run. They are not returning any errors. They are just not running. We are using Gnome Desktop.

Any help would be appreciated. Thanks in advance.
Old 03-24-2008, 10:13 PM   #2
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 32
Which distribution are you running?
Old 03-25-2008, 10:59 AM   #3
LQ Newbie
Registered: Feb 2008
Posts: 6

Original Poster
Rep: Reputation: 0
We are running CentOS 5.1
Old 03-25-2008, 02:41 PM   #4
LQ Newbie
Registered: Oct 2005
Posts: 16

Rep: Reputation: 0
what I have done is adding the script in the .cshrc which will execute it when you start cshell, but this works every time you create a cshell. I also want to know what to do for a logout.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script run as user login or logout in Vsftpd server singhpps Linux - Software 4 11-27-2010 11:06 AM
loginscript--run script-- logout sinister1 Linux - Security 6 01-16-2008 10:44 AM
would script run after logout? mokku Linux - Newbie 3 12-03-2007 11:21 AM
Script is executed when user logout karthi26 Linux - Newbie 10 07-12-2007 07:26 AM
how do I make sure that the user that is going to run the script is a root user??? nikold01 Linux - General 3 09-10-2004 07:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration