[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Login script



Yes, but i've to do that on each client. Isn't there a possibility to store it central on the server?

Am 05.11.2010 20:24, schrieb Petter Reinholdtsen:
[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,


Reply to: