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

Re: status of /etc/environment?

On Mon, Aug 16, 2010 at 08:54:48PM +0200, Christoph Anton Mitterer wrote:
> Well.... does this perhaps deserve it's own manpage? At least if it's
> not deprecated?

This would make sense to have as a symlink to the pam_env manpage.  Feel
free to file a bug report against libpam-modules.

> Some init-scripts on my system merely use it as a location for the local
> settings, e.g. console-screen.sh, keymap.sh and pcscd, overriden
> by /etc/defaults/locale:
> [ -r /etc/environment ] && ENV_FILE="/etc/environment"
> [ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
> #then sourcing it somehow

> One of Debian's derivates has some nice specification:
> https://help.ubuntu.com/community/EnvironmentVariables#System-wide%
> 20environment%20variables

This overlooks the fact that /etc/environment is only used by PAM sessions. 
(The use of it for locale information is definitely deprecated, and will
probably be phased out over the next release or so.  And I have no idea what
pcscd is doing with this file; daemons should speak C, the user's language
is not guaranteed to be the same as the sysadmin's.)

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature

Reply to: