LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-06-2004, 06:37 AM   #1
hilltop*Tech
LQ Newbie
 
Registered: May 2003
Posts: 18

Rep: Reputation: 0
Where to run scripts automatically on login/logout


I have a requirement to run a set of scripts automatically upon a GUI login/logout, but don't know hot to accomplish this. I'm using gnome with Ximian as the Window Manager. Any suggestions would be appreciated.

Thanks
 
Old 02-06-2004, 09:54 AM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
If you are running the GUI by typing 'startx' from the console, you ought to be able to put commands into a file in your home directory called .xinitrc. If you're logging in through a graphical login screen though, .xinitrc might be ignored, so it's a little trickier... I think XDM (the default ugly login screen) reads stuff out of ~/.xsession. You may need to google around a bit to find out what to do with KDE (KDM) or Gnome (GDM) login screens. Those may offer some GUI configuration tool for running scripts at startup, I'm not sure.
 
Old 02-06-2004, 10:59 AM   #3
hilltop*Tech
LQ Newbie
 
Registered: May 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, I've verified that gdm is what is being started. What I need to do is update the users home directory permissions as soon as they login, but before many of the login scripts begin to run.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i run smbmount automatically when a user login rddreamz Linux - Networking 4 02-18-2006 03:10 AM
logout out automatically after a couples of seconds yenonn Linux - Security 6 05-09-2005 03:43 AM
how to add logout scripts ?? withjigs Linux - General 3 03-20-2005 08:52 AM
How do I automatically logout after a period of inactivity? AshleyK Linux - Security 4 12-31-2004 10:47 PM
Automatically run scripts on startup? Phaethar Fedora 10 09-24-2004 02:35 AM


All times are GMT -5. The time now is 03:33 PM.

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