[George] > Hi, > > Where do I preferably put a script that is supposed to run *after* login? > Im running Squeeze with lxde > I don't want to put it in user homedirs (.bashrc), its systemwide scripts. > > I tried /etc/rc.local and /etc/profile.d but it does not seem to do anything..
For X logins, put it in /etc/X11/Xsession.d/. It will run as the user, the same way /etc/profile.d is used when shells start. If you need to run it as root, a PAM hook is probably the right way. See for example how libpam-mklocaluser uses libpam-python. > The thing is, the script has to be run after login (when variables like > $HOME is set). I tried to put the script in both chroot and in tjener. > For thin clients its supposed to be in /etc/, not in chroot, right? Yes. -- Happy hacking Petter Reinholdtsen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

