well depends see, I built my server and added each user one by one and
already had modified the /etc/skel/.profile file for ksh and I had no
problem. If he had 1000 users already then he'll most likely do it another
way...

thanks,
George Vieira
Network Administrator
Citadel Computer Systems P/L
http://www.citadelcomputer.com.au



-----Original Message-----
From: Anand Kumria [mailto:[EMAIL PROTECTED]]
Sent: Friday, 4 August 2000 12:13 PM
To: George Vieira
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Re: [SLUG] help! Environment variables.


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.

Anand


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to