Index | Thread | Search

From:
Florian Obser <florian@openbsd.org>
Subject:
Re: New user for fontconfig cache
To:
"Anthony J. Bentley" <bentley@openbsd.org>
Cc:
tech@openbsd.org
Date:
Tue, 01 Jul 2025 10:58:08 +0200

Download raw body.

Thread
On 2025-07-01 01:39 -06, "Anthony J. Bentley" <bentley@openbsd.org> wrote:
> When installing fonts, pkg_add(1) runs fc-cache(1) to add them to
> /var/cache/fontconfig. It does so as root, which makes me uncomfortable.
> During j2k25 I experimented with changing ownership of the font cache to
> a dedicated unprivileged user and switching to it during pkg_add; this
> works, and I'd like to make it the default.
>
> The first step is to create the user. Since this is simple and can
> be done independently of the remaining parts of the transition, I'd
> like to commit this right away.
>
> ok?
>

probably NOT ok

> +_fc-cache:*:120:120::0:0:Font configuration cache:/var/empty:/sbin/nologin

uid 120 is used on cvs. I couldn't find it in the history, so I don't
know why it's there.

-- 
In my defence, I have been left unsupervised.