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


Groups > linux.debian.user > #212761

Re: Error with logrotate.

From Gene Heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject Re: Error with logrotate.
Date 2019-08-13 22:00 +0200
Message-ID <yuL7z-6cv-3@gated-at.bofh.it> (permalink)
References <yuqcO-1c2-13@gated-at.bofh.it> <yuB8e-8lO-5@gated-at.bofh.it> <yuKlc-5Um-11@gated-at.bofh.it>
Organization none,nada,zip

Show all headers | View raw


On Tuesday 13 August 2019 15:03:53 Lee wrote:

> On 8/13/19, Gene Heskett <gheskett@shentel.net> wrote:
> > On Tuesday 13 August 2019 02:24:34 deloptes wrote:
> >> Gene Heskett wrote:
> >> > Its good that we can fix it, BUT IF you are going to restrict
> >> > where we keep logfiles like this then FIX the /var/log perms so
> >> > that fetchmail, procmail, spamassassin, clamav and its ilk,
> >> > running as the user can access /var/log to keep its logs. 
> >> > Debian's legendary paranoia about who can write a log in /var/log
> >> > has long since forced most of us that want that log, into moving
> >> > it to /home/username/log and reprogramming logrotate to maintain
> >> > it there years ago.
> >>
> >> So why should user be able to write in /var/log? It is the systems
> >> log directory not the users.
> >
> > I don't have a beef with that. My beef is that there has been no
> > effort to make it easy for the user to take care of his own logs,
> > and now systemd wants to disable housekeeping the only sensible
> > place for a user to keep his logs in. And I totally fail to see how
> > that level of paranoia can be justified.
> >
> >> I am not aware of any program I've been using
> >> for the past 15y that would have a problem writing in /var/log
> >
> > Then tell me how fetchmail, procmail, clamav or spamd running as me,
> > can keep their logs in /var/log, the permissions just aren't there
> > after a reboot.
>
> I had the same problem with /var/log file permissions being reset so,
> for bind, I made a /var/log/bind, set the permissions on the directory
> & changed bind to log to /var/log/bind/named.log
>
> ^shrug^ probably not The Right Way To Do It, but it works & I'm happy.
>
> If you make a /var/log/mail & configure fetchmail, procmail, etc. to
> log there it'll probably work
>
ISTR I tried that, making mail's owner and group both me. Didn't work, 
error was no permission, I assume because parent log was owned by 
root:root.

I tried chmod 0777, which did work, till the next reboot at which point 
it was reset to 0640 again.


> Regards,
> Lee


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

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


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