Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #212740
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Error with logrotate. |
| Date | 2019-08-13 15:20 +0200 |
| Message-ID | <yuESu-2nn-3@gated-at.bofh.it> (permalink) |
| References | <yuqcO-1c2-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 13, 2019 at 09:30:34AM +1200, Philip wrote:
> I just updated from Debian 8 to 9 and I'm getting the following error. I'm
> guessing it's something to do with permissions?
>
> Something to do with the create 640 root adm?
>
> /etc/cron.daily/logrotate:
> error: unable to open /home/philip/logs/access.log.1 for compression
Could be permissions, yes.
> /home/philip/logs/*.log {
> su philip philip
[...]
> create 640 root adm
If you're running as "philip:philip" then you can't create files as
"root:adm".
Moreover, any existing files like /home/philip/logs/access.log.1 that
are owned by "root:adm" can't be written by a process running as
"philip:philip".
Most likely, what you want to do is replace the "create 640 root adm"
with "create 640 philip philip", and then verify/change the ownership
of any existing files, as well as the directory they're in, so that
the logrotate process running as "philip:philip" can read and write
everything.
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Error with logrotate. Philip <philip@treads.nz> - 2019-08-12 23:40 +0200
Re: Error with logrotate. Teemu Likonen <tlikonen@iki.fi> - 2019-08-13 06:10 +0200
Re: Error with logrotate. Gene Heskett <gheskett@shentel.net> - 2019-08-13 06:40 +0200
Re: Error with logrotate. Sven Joachim <svenjoac@gmx.de> - 2019-08-13 07:10 +0200
Re: Error with logrotate. Erik Christiansen <dvalin@internode.on.net> - 2019-08-13 07:40 +0200
Re: Error with logrotate. Gene Heskett <gheskett@shentel.net> - 2019-08-13 11:00 +0200
Re: Error with logrotate. deloptes <deloptes@gmail.com> - 2019-08-13 08:30 +0200
Re: Error with logrotate. Gene Heskett <gheskett@shentel.net> - 2019-08-13 11:20 +0200
Re: Error with logrotate. Dan Purgert <dan@djph.net> - 2019-08-13 12:00 +0200
Re: Error with logrotate. Gene Heskett <gheskett@shentel.net> - 2019-08-13 16:00 +0200
Re: Error with logrotate. Dan Purgert <dan@djph.net> - 2019-08-13 19:20 +0200
Re: Error with logrotate. Gene Heskett <gheskett@shentel.net> - 2019-08-13 19:40 +0200
Re: Error with logrotate. Lee <ler762@gmail.com> - 2019-08-13 21:10 +0200
Re: Error with logrotate. Gene Heskett <gheskett@shentel.net> - 2019-08-13 22:00 +0200
Re: Error with logrotate. Gene Heskett <gheskett@shentel.net> - 2019-08-13 22:30 +0200
Re: OT: While we're talking about logrotate (was: Re: Error with logrotate.) rhkramer@gmail.com - 2019-08-13 14:10 +0200
Re: Error with logrotate. Sven Joachim <svenjoac@gmx.de> - 2019-08-13 07:10 +0200
Re: Error with logrotate. Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-13 15:20 +0200
csiph-web