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

Re: /etc/profile.d



* Rene H. Larsen said:
> grendel@vip.net.pl (Marek Habersack) writes:
> 
> > You all, guys, seem to forget about the pam_env module. If you login
> > via ssh, it parses /etc/environment on its own, as somebody already
> > said. If you login at the console or via rlogin, telnet then the
> > /bin/login is invoked.  On potato it uses pam, just enable the
> > pam_env module and it will set the envvars before invoking the shell
> > - they will use the inherited environment.
> 
> Ahh, this is very nice--I'm not very well versed in all this PAM
> stuff, but it seems that the pam_env module takes care of most of my
> concerns.  The only unsolved problem seems to be X sessions, since xdm
> isn't PAMified yet.  We'll need to either PAMify xdm or use the "set -a"
> trick in /etc/X11/Xsession when /env/environment is sourced.
Set -a is not portable accross shells. It's better to pamify {g|k|x}dm,
IMHO.

marek

Attachment: pgpX03x3TCt9d.pgp
Description: PGP signature


Reply to: