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

Re: profile.d [was Re: UMASK 002 or 022?]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Ethan Benson <erbenson@alaska.net> writes:

> On Thu, Jun 08, 2000 at 02:54:42PM +0100, Graeme Mathieson wrote:
> 
> > 
> > OK, you've got me there.  I suspect, however, that it wasn't a direct
> > result of profile.d that $PATH was screwed up.
> 
> oh really?  well i sure don't see anything else that could have caused
> it (well it could be any number of redhat obfuscations but..):

[ Evidence of very mildly screwed $PATH removed ]

> now can you tell me where else that lame PATH could have come from? ;-)

That's no lame $PATH...  I've had a RedHat box repeat the likes of /bin,
/usr/bin and /usr/local/bin 2 or three times.  What you showed was not
any indication of where it was going wrong.  That only showed where it
_wasn't_ going wrong.  The problem of the repetition occured *before*
$PATH was appended to in /etc/profile.  The profile.d scripts are run
at the very end of /etc/profile, so I reiterate that I suspect the
profile.d was not what caused the mildly screwed $PATH.

> > Simple.  The package itself should have created the requisite small file.
> > In my case, certain packages are only installed on certain machines,
> > so their profile.d scripts are only pushed to those machines.
> 
> that may indeed be useful in some rare cases,

Packages which rely on environment vars are not rare.  Just that in
Debian, there is no standard way for the package maintainer to provide
default values (and a standard location for admins to modify the default
values).

> but i don't think the benifit is worth the cost, see above.

I still maintain that the cost is negligible and that the problems you are
suffering are down to another RedHat obfuscation.

The real issue, I suspect, is being able to provide a mechanism which
works for all shells.  The m4 idea does sound interesting.  I also
have the distinct impression that since nobody else is really joining
in, this has been done to death in the past...

- -- 
Graeme.
graeme+sig@mathie.cx

"Life's not fair," I reply. "But the root password helps." - BOFH
-----BEGIN PGP SIGNATURE-----

iD8DBQE5P9SgPjGH3lNt65URAmXsAKChrvIdqMvSdkas+hAPRBtogKDc8QCgib7j
/AWz9oIPbEaKqKQS4r/de18=
=djRL
-----END PGP SIGNATURE-----



Reply to: