Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #211606

Re: Debian 10 logrotate

From Étienne Mollier <etienne.mollier@mailoo.org>
Newsgroups linux.debian.user
Subject Re: Debian 10 logrotate
Date 2019-07-21 12:50 +0200
Message-ID <ymhzI-Zt-1@gated-at.bofh.it> (permalink)
References <ymgtY-mh-17@gated-at.bofh.it> <ymgNj-t6-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Sven Joachim, on 2019-07-21:
> On 2019-07-21 02:42 +0000, Tan Shao Yi wrote:
> > May I know if something has changed recently to cause this?
>
> It is the ProtectSystem=full directive in logrotate.service which causes
> /usr to be mounted read-only for logrotate.  See the SANDBOXING section
> in systemd.exec(5).

So it was a Systemd subtlety indeed.  Never mind my previous
email Tan Shao Yi.

> You can make /usr/local writable with
> "systemctl edit logrotate.service", enter the following line:
>
> ReadWritePaths=/usr/local

The culprit was ProtectHome= on my side.  I moved data outside
/home, to clear things up since then.

Thank you for your insights Sven!
-- 
Étienne Mollier <etienne.mollier@mailoo.org>
               5AB1 4EDF 63BB CCFF 8B54 2FA9 59DA 56FE FFF3 882D


Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Debian 10 logrotate Sven Joachim <svenjoac@gmx.de> - 2019-07-21 12:00 +0200
  Re: Debian 10 logrotate Étienne Mollier <etienne.mollier@mailoo.org> - 2019-07-21 12:50 +0200
  Re: Debian 10 logrotate Gene Heskett <gheskett@shentel.net> - 2019-07-25 08:10 +0200

csiph-web