🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89685

Re: innd: SERVER cant open /var/www/inn/inn_status.html: Permission denied

#89685
From: Russ Allbery
Date: Tue, 04 Oct 2022 20:24
29 lines
2154 bytes
Jeffery Small <jefferysmall@gmail.com> writes:

> I believe you are correct that this is an unrelated issue, and I will
> look into it further.  That brings us back to the original problem....

Oh, what does /lib/systemd/system/inn2.service look like?  I bet that innd
is now started with systemd following your upgrade and probably has
various security features enabled, and you're getting bitten by the fact
that /var/www is a symlink off to some other file system and that file
system probably isn't set up to be writable by the innd process.

If something like ProtectSystem=strict is set in that file, you may need
to create a directory named /etc/systemd/system/inn2.service.d and drop a
file in there named something like www.conf and containing:

[Service]
ReadWritePaths=/var/www/inn

to whitelist an additional writable path.  I think it will automatically
resolve symlinks; if not, you may need:

[Service]
ReadWritePaths=/x/u/www

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87edvnqqvz.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <1fa7c51d-79c0-4411-bb01-1a01bc6ea891n@googlegroups.com> <874jwjsj66.fsf@hope.eyrie.org> <b6710de6-919f-4331-a663-b18eaed4346an@googlegroups.com> <87r0znqzj9.fsf@hope.eyrie.org> <f129b02c-cd9c-409d-b88f-8053d62f14e2n@googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <87edvnqqvz.fsf@hope.eyrie.org>
Subject: Re: innd: SERVER cant open /var/www/inn/inn_status.html: Permission denied
Date: Tue, 04 Oct 2022 13:24:00 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <1fa7c51d-79c0-4411-bb01-1a01bc6ea891n@googlegroups.com> <874jwjsj66.fsf@hope.eyrie.org> <b6710de6-919f-4331-a663-b18eaed4346an@googlegroups.com> <87r0znqzj9.fsf@hope.eyrie.org> <f129b02c-cd9c-409d-b88f-8053d62f14e2n@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org; logging-data="23542"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:mx+dimTU/xY4RPBOfmODrBcYJJw=