running scripts while login and logout

Vram lamsokvr at xprt.net
Tue Jan 24 18:11:05 UTC 2006


On Tue, 2006-01-24 at 06:52 -0800, L.V.Gandhi wrote:
> Am I correct that anything in /etc/gdm/PostSession/Default will be run as root.
> I wanted a script to be run as user while (s)he logs out.
> 




The permission on this file is

-rwxr-xr-x  1 root root 490 2004-10-13 05:57 Default

Permission on directory.

drwxr-xr-x  2 root root    72 2005-06-20 08:41 PostSession


looks like root to me.

Vram





> On 1/23/06, Olafur Arason <olafra at gmail.com> wrote:
> > Do gedit /etc/gdm/PostSession/Default
> >
> > the add something like:
> > echo "1234" > /tmp/prufa
> > after:
> > PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH:/bin:/usr/bin"
> > OLD_IFS=$IFS
> >
> > you can then replace echo with any command you like.
> > This works for login out, for login in you can use the session-manual file or
> > the /etc/gdm/PostLogin/Default
> >
> > Olafur Arason
> >
> > 2006/1/24, L.V.Gandhi <lvgandhi at gmail.com>:
> > > On 1/23/06, Olafur Arason <olafra at gmail.com> wrote:
> > > > Basically it goes into ~/.gnome2/session-manual and is read
> > > > through gnome-session which is what gdm runs to start gnome.
> > >
> > > Thank You very much. Is there any thing like this to run a script by
> > > an user while logging out?
> > > --
> > > L.V.Gandhi
> > > http://lvgandhi.tripod.com/
> > > linux user No.205042
> > >
> > > --
> > > ubuntu-users mailing list
> > > ubuntu-users at lists.ubuntu.com
> > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> > >
> > >
> > >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> 
> 
> --
> L.V.Gandhi
> http://lvgandhi.tripod.com/
> linux user No.205042





More information about the ubuntu-users mailing list