SLUG Mailing List Archives
Re: [SLUG] help! Environment variables.
- To: George Vieira <georgev@xxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] help! Environment variables.
- From: Anand Kumria <wildfire@xxxxxxxxxxxxxxxxxx>
- Date: Fri Aug 4 12:13:14 2000
- Cc: "'stuart@xxxxxxxxxxxxx'" <stuart@xxxxxxxxxxxxx>, "'slug@xxxxxxxxxxx'" <slug@xxxxxxxxxxx>
- Reply-to: slug@xxxxxxxxxxx
- User-agent: Mutt/1.2i
On Fri, Aug 04, 2000 at 12:00:22PM +1000, George Vieira wrote:
> have you tried /etc/rc.d/rc.local ?
> and if you need individual different environments then add it to the
> .profile or .bash_profile for each user...
That would be extreemly annoying if you had more than a handful of
users. What about the /etc/environment file?
If you don't have it (like RedHat doesn't) you need to modify the PAM
file for login.
In /etc/pam.d/login add something like this:
# This module parses /etc/environment (the standard for setting
# environ vars) and also allows you to use an extended config
# file /etc/security/pam_env.conf.
# (Replaces the `ENVIRON_FILE' setting from login.defs)
auth required pam_env.so
Just prior to the account and session directives. pam_env.so is provided
with RedHat, so I'm not sure why that isn't the default.