Date: Tue, 22 Aug 2023 22:06:49 -0500 From: Mike Karels <mike@karels.net> To: Jamie Landeg-Jones <jamie@catflap.org> Cc: grahamperrin@gmail.com, freebsd-current@FreeBSD.org Subject: Re: etcupdate -B, /.cshrc and /.profile Message-ID: <563EEA5B-0624-4EB3-BCB3-DD8A8F57C3A9@karels.net> In-Reply-To: <202308230237.37N2brSh029907@donotpassgo.dyslexicfish.net> References: <ad0c7ea1-e44b-1748-1589-8e9f2f0a25fd@gmail.com> <202308230237.37N2brSh029907@donotpassgo.dyslexicfish.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22 Aug 2023, at 21:37, Jamie Landeg-Jones wrote: > Graham Perrin <grahamperrin@gmail.com> wrote: > >> If I recall correctly, a few hours ago etcupdate -B resulted in removal >> of two files: >> >> /.cshrc >> /.profile >> >> Is this degree of checking/removal a novelty? >> >> (I can't recall the files' contents, or when I created them. I guess >> that I carelessly created them as dot files months ago without realising >> that I wasn't at ~, I don't mourn their loss.) > > For as long as I can remember, (as far back as FreeBSD 2.2.7 in 1998) all > FreeBSD installs have /.cshrc and /profile as hardlinks to /root/.cshrc and > /root/.profile . Both sets have been present since 4.3-Reno in 1990, although they were apparently not links. > Removing them both is one of the first things I do when I install a new > system from install-media. Why? > If etcupdate is now removing them, maybe there has been an update to the src > distribution / mntree so that this historical weirdness has finally been removed? It is not weird. /.profile and /.cshrc are used in single-user mode, the ones in /root are used for root logins. > If you have a /root/.cshrc and /root/.profile, try doing an ls -c on them to > see if their changed-date is when you did the etcupdate. They were modified by the removal of $FreeBSD$ a few days ago at the next etcupdate. Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?563EEA5B-0624-4EB3-BCB3-DD8A8F57C3A9>