On Wed, 19.12.07 17:42, Patrice Dumas (pertusus(a)free.fr) wrote:
Nobody thinks that. But PAM allows to run some login wide stuff,
modularity and under administrator control, and hook in any login
program. This may not be the perfect place to start PA, but it is still
better than starting it only in gdm. Maybe the X session script is
better, but the issue with session script (in
/etc/X11/xinit/xinitrc-common) is that it is only for X, and it is not
modular. The interest of pam is that the administrator may decide which
login path uses it.
You are aware that there still is /etc/profile and similar scripts?
Those are usually not interpreted when doing a login on X11 (at least
AFAIK). So, for shell-only logins it is not that difficult to hook
additional stuff in.
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553