Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

It's documented in The Book, somewhere... -- Larry Wall in <10502@jpl-devvax.JPL.NASA.GOV>


devel / 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
/etc/profile.d or /usr/local/etc?

<undhv1$vuqq$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=575&group=comp.unix.bsd.freebsd.misc#575

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dchme...@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=
 by: David Chmelik - Sun, 7 Jan 2024 06:56 UTC

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.).

Re: /etc/profile.d or /usr/local/etc?

<ung40j$vefl$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=577&group=comp.unix.bsd.freebsd.misc#577

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.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=
 by: Alastair Hogge - Mon, 8 Jan 2024 06:16 UTC

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

Re: /etc/profile.d or /usr/local/etc?

<unl2st$kml$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=579&group=comp.unix.bsd.freebsd.misc#579

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.198.18.1.140!not-for-mail
From: gtay...@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>
 by: Grant Taylor - Wed, 10 Jan 2024 03:28 UTC

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. . . .


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor