Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You're working under a slight handicap. You happen to be human.


comp / comp.unix.bsd.freebsd.misc / Re: /etc/profile.d or /usr/local/etc?

SubjectAuthor
* /etc/profile.d or /usr/local/etc?David Chmelik
`* Re: /etc/profile.d or /usr/local/etc?Alastair Hogge
 `- Re: /etc/profile.d or /usr/local/etc?Grant Taylor

1
Subject: /etc/profile.d or /usr/local/etc?
From: David Chmelik
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Sun, 7 Jan 2024 06:56 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dchmelik@gmail.com (David Chmelik)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: /etc/profile.d or /usr/local/etc?
Date: Sun, 7 Jan 2024 06:56:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <undhv1$vuqq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 7 Jan 2024 06:56:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b84d9981c3660c5761334565c6dd0bf4";
logging-data="1047386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KmN25MFFYZsZnIcYmi3FZAdryZ7z2AZY="
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:/vQJdk9Wvvva1VR9TKjQsNogkSA=
View all headers

If one wants to set system-wide aliases, environment variables, functions,
etc., I assume it's best to not alter /etc/profile rather than use /etc/
profile.d or perhaps somewhere in /usr/local/etc (where)? I'm talking
about case of personal desktop/laptop usage in which I'm the only user but
have more than one username I want these on (don't discuss don't do this
on multi-user systems because I already know and set them in ~/.profile,
etc.).

Subject: Re: /etc/profile.d or /usr/local/etc?
From: Alastair Hogge
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Mon, 8 Jan 2024 06:16 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: agh@riseup.net (Alastair Hogge)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: /etc/profile.d or /usr/local/etc?
Date: Mon, 8 Jan 2024 06:16:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ung40j$vefl$1@dont-email.me>
References: <undhv1$vuqq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 8 Jan 2024 06:16:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="56481c99548e49f0518b734d6a3b05c3";
logging-data="1030645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Twdb0Gbbrxg31XD0aw6kg1yCDtrBeAto="
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a
git.gnome.org/pan2)
Cancel-Lock: sha1:QZZqVaW0v+fSG35GqgfBlFjYB6E=
View all headers

On Sun, 07 Jan 2024 06:56:33 +0000, David Chmelik wrote:

> If one wants to set system-wide aliases, environment variables,
> functions,
> etc., I assume it's best to not alter /etc/profile rather than use /etc/
> profile.d or perhaps somewhere in /usr/local/etc (where)?

Have a look in /etc/profile[1]. On 14.x, and 15-CURRENT, you can make use
of either /etc/profile.d or /usr/local/etc/profile.d, tho I would go with
you inclination and leave /etc/ untouched, and prefer the /usr/local
prefix.

1: https://codeberg.org/FreeBSD/freebsd-src/src/branch/stable/14/bin/sh/
profile

--
To health and anarchy

Subject: Re: /etc/profile.d or /usr/local/etc?
From: Grant Taylor
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: TNet Consulting
Date: Wed, 10 Jan 2024 03:28 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.198.18.1.140!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: /etc/profile.d or /usr/local/etc?
Date: Tue, 9 Jan 2024 21:28:29 -0600
Organization: TNet Consulting
Message-ID: <unl2st$kml$1@tncsrv09.home.tnetconsulting.net>
References: <undhv1$vuqq$2@dont-email.me> <ung40j$vefl$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Jan 2024 03:28:29 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="198.18.1.140";
logging-data="21205"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <ung40j$vefl$1@dont-email.me>
View all headers

On 1/8/24 00:16, Alastair Hogge wrote:
> Have a look in /etc/profile[1]. On 14.x, and 15-CURRENT, you can
> make use of either /etc/profile.d or /usr/local/etc/profile.d, tho I
> would go with you inclination and leave /etc/ untouched, and prefer
> the /usr/local prefix.

I have no overt objection to modifying files in /etc (or a sub-directory
therein).

I grew up with /usr/local being allocated to the local site and
independent of the distribution. As such, /etc being outside of
/usr/local runs the risk of having files replaced during upgrades.
Though I would sincerely hope that there is effort to avoid this both on
FreeBSD's part and the system administrators part.

As for profile file vs the profile.d directory, I've learned that
separate files inside of the profile.d directory are somewhat easier to
maintain than the profile file. (Independent of /etc/profile* vs
/usr/local/etc/profile* decision.) This simply has to do with the
monolithic nature of the profile file vs the modular nature of the
profile.d directory.

In short, do whatever you want, just try to have an understanding of
what you're doing.

--
Grant. . . .

1

rocksolid light 0.9.8
clearnet tor