From: Magicloud Magiclouds on 28 Oct 2009 05:40 I looked over the init scripts. I cannot find the exact place that reads /etc/environment. -- 竹å¯å²å¦¨æµæ°´è¿ å±±é«åªé»éäºé£
From: Roger Leigh on 28 Oct 2009 06:00 On Wed, Oct 28, 2009 at 05:38:05PM +0800, Magicloud Magiclouds wrote: > I looked over the init scripts. I cannot find the exact place that > reads /etc/environment. pam_env.so is part of the PAM auth setup. Note you should really use /etc/security/pam_env.conf instead, AFAICT /etc/environment is read for backwards compatibility, but is deprecated. Also look at the files in /etc/pam.d. Services such as login, ssh and gdm/kdm which start user sessions have lines like: session required pam_env.so readenv=1 which set up the user environment using /etc/security/pam_env.conf and/or /etc/environment. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
From: green on 28 Oct 2009 11:10 Roger Leigh wrote at 2009-10-28 04:56 -0500: > On Wed, Oct 28, 2009 at 05:38:05PM +0800, Magicloud Magiclouds wrote: > > I looked over the init scripts. I cannot find the exact place that > > reads /etc/environment. > > pam_env.so is part of the PAM auth setup. Note you should really > use /etc/security/pam_env.conf instead, AFAICT /etc/environment is > read for backwards compatibility, but is deprecated. Is the file deprecated in Lenny, or later? pam_env(8) mentions nothing about deprecation of the file, just claims it is the default.
|
Pages: 1 Prev: xorg + nvidia cursor color? Next: Can't modify /proc/acpi/thermal_zone/TZ1/trip_points |