Article View: news.software.nntp
Article #89697Re: innd: SERVER cant open /var/www/inn/inn_status.html: Permission denied
From: Russ Allbery
Date: Sat, 08 Oct 2022 15:58
Date: Sat, 08 Oct 2022 15:58
39 lines
3036 bytes
3036 bytes
Jeffery Small <jefferysmall@gmail.com> writes:
> Well, I still don't have a systemd solution or answer to the problem,
> but I changed the /etc/news/inn.conf line to:
> pathhttp: /x/u/www/inn
> which is the original location on the mounted disk, but bypassing
> the symlink. I restarted the inn2 service, but this also fails.
> I then created a new directory, /var/inn, which is on the primary
> drive and placed the inn_status.html file there. I changed the
> /etc/news/inn.conf line to:
> pathhttp: /var/inn
> and restarted the inn2 service. No more error messages and the
> file is now updating. So the problem is with the file being on the
> mounted disk and doesn't seem to be related to the symlink.
Yup, that's what I thought.
Something is making that file system read-only for innd. I'm not sure
what. I still suspect systemd security controls somewhere, something
about either ProtectHome=true or ProtectSystem=full that I'm not
understanding and that isn't overridden by ReadWritePaths for some reason.
One thing you could do to work around the problem, although unsatisfying
since it doesn't explain why, is symlink the other direction: have INN
write to /var/inn or whatever, and make a symlink from /x/u/www/inn to
that directory so that your web server can still serve it. The size of
files that INN will write are quite small, so it shouldn't be a problem
with available space.
--
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:
<878rlqi9xa.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-mailReferences:
<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> <87edvnqqvz.fsf@hope.eyrie.org> <aecf2f19-92ee-4c4f-9334-763ad2375d0bn@googlegroups.com> <87tu4hvd23.fsf@hope.eyrie.org> <82780217-dd2d-4931-9d84-4d0b01cb7090n@googlegroups.com> <87o7upvb9c.fsf@hope.eyrie.org> <ce163f8a-c1ed-42b1-b096-82c4a761d615n@googlegroups.com> <87v8ow1ng1.fsf@hope.eyrie.org> <4f444a6c-a00d-4b8d-ad9f-5839a90d4754n@googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <878rlqi9xa.fsf@hope.eyrie.org> Subject: Re: innd: SERVER cant open /var/www/inn/inn_status.html: Permission denied Date: Sat, 08 Oct 2022 08:58:57 -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> <87edvnqqvz.fsf@hope.eyrie.org> <aecf2f19-92ee-4c4f-9334-763ad2375d0bn@googlegroups.com> <87tu4hvd23.fsf@hope.eyrie.org> <82780217-dd2d-4931-9d84-4d0b01cb7090n@googlegroups.com> <87o7upvb9c.fsf@hope.eyrie.org> <ce163f8a-c1ed-42b1-b096-82c4a761d615n@googlegroups.com> <87v8ow1ng1.fsf@hope.eyrie.org> <4f444a6c-a00d-4b8d-ad9f-5839a90d4754n@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="4231"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:zvkUTqho/brF41au5uP5nCUvoe8= Lines: 38