[aklug] Re: What happened to /etc/profile?

From: Shane R. Spencer <shane@bogomip.com>
Date: Thu Jan 22 2009 - 08:50:43 AKST

Fine.. see bottom post.
Arthur Corliss wrote:
> On Thu, 22 Jan 2009, Damien Hull wrote:
>
>> There's a section on the LPI test about the bash shell. It covers config files, login, logout, variables etc... I checked my own /etc/profile to find something very strange. There's no PATH variable.
>>
>> It turns out this is a wacky Debian thing. I'm on Ubuntu and it inherits wacky things from Debian. The PATH variable is in /etc/login.defs. Why does Debian do wacky things like this?
>>
>> Unless other distributions are doing the same thing. All my systems are running Ubuntu.
>
> That's not wacky, that's legacy -- login *is* responsible for setting a
> minimal environment into place. That said, many distributions also set
> customizations in bash login scripts, and even PAM allows you to control
> environment variables. That typically works off of /etc/environment and/or
> /etc/security/pam_env.conf.
>
> All told, login.defs is largely deprecated by PAM, but it's still an
> important file to maintain.
>
> --Arthur Corliss
> Live Free or Die

Agreed, I looked at LPI 101 and did a lot of giggling. I couldn't pass
it until I looked up all the wrong answers I had. I did much better as
soon as i apt-get dist-downgraded to 1992.

Shane

-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl4sfQACgkQXK/vGhypreKaZACdEo63MDa7VAW7mfCBRy6Dbl6+
7DQAnAq5lqtzelYlMjlGnpMlA5KX/GLs
=/Eap
-----END PGP SIGNATURE-----

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Jan 22 08:50:57 2009

This archive was generated by hypermail 2.1.8 : Thu Jan 22 2009 - 08:50:57 AKST