Re: Login script
[Martin Schulte]
> Hi,
> for Windows it is possible to put a script into /etc/samba/netlogon,
> which will be executed while user-login. Is there a similar
> possibility for the debian clients?
For graphical logins, the scripts in /etc/X11/Xsession.d/ are executed
as the user, and might be a good place to putt stuff like that. For
non-graphical logins, it is a bit more options and probably more work.
One can add /etc/pam.d/ rules to run scripts at login, or with Debian
Squeeze use /etc/profile.d/. The pam.d rules are running as root, and
probably not quite what you are looking for, but one could trick
something using pam-python if one need it.
Happy hacking,
--
Petter Reinholdtsen
Reply to: