Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-07-17 Thread Marc Haber
On Mon, Jul 17, 2023 at 01:18:51PM +0200, Marc Haber wrote: > I have committed this patch with a slightly re-worded warning message. > The commit is not yet pushed, and marked as "Closes: #1032387". Please > let me know until July 23 whether this patch will address all issues > left in this bug

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-07-17 Thread Marc Haber
On Thu, Mar 16, 2023 at 10:27:23AM +0100, Guillem Jover wrote: > From f20ccedef8ba985fcb9766524bc68eae26f2e0cb Mon Sep 17 00:00:00 2001 > From: Guillem Jover > Date: Thu, 16 Mar 2023 10:07:54 +0100 > Subject: [PATCH] dailyaidecheck: Automatically use mail(1) if called from cron > via capsh >

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-16 Thread Marc Haber
On Thu, Mar 16, 2023 at 10:27:23AM +0100, Guillem Jover wrote: > otherwise I've still prepared the attached patch > for consideration. That patch would break the error message in the systemd case while still keeping systemd-systems broken (silent failure or very obscure, misleading MTA error

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-16 Thread Guillem Jover
On Thu, 2023-03-16 at 09:34:56 +0100, Marc Haber wrote: > Control: tags -1 severity serious > thanks > > On Wed, Mar 15, 2023 at 07:44:06PM +0100, Guillem Jover wrote: > > ,--- > > AIDEUSER="${AIDEUSER:-$(id -u -n)}" > > `--- > > Yes that one is absolutely needed or the daily cron job will fail.

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-16 Thread Marc Haber
Control: tags -1 severity serious thanks On Wed, Mar 15, 2023 at 07:44:06PM +0100, Guillem Jover wrote: > ,--- > AIDEUSER="${AIDEUSER:-$(id -u -n)}" > `--- Yes that one is absolutely needed or the daily cron job will fail. This is now an RC bug. Did we discuss this enough in depth so that I can

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-15 Thread Guillem Jover
On Wed, 2023-03-15 at 14:39:35 +0100, Guillem Jover wrote: > On Wed, 2023-03-15 at 04:39:14 +0100, Guillem Jover wrote: > > On Tue, 2023-03-14 at 21:36:01 +0100, Marc Haber wrote: > > > Where is it hardcoded? I have only seen code that honors what's read in > > > from defaults. > > > > > > That

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-15 Thread Guillem Jover
On Wed, 2023-03-15 at 04:39:14 +0100, Guillem Jover wrote: > On Tue, 2023-03-14 at 21:36:01 +0100, Marc Haber wrote: > > Where is it hardcoded? I have only seen code that honors what's read in > > from defaults. > > > > That variable was renamed to AIDEUSER just in case there is a conflict > >

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-14 Thread Guillem Jover
On Tue, 2023-03-14 at 21:36:01 +0100, Marc Haber wrote: > On Thu, Mar 09, 2023 at 02:46:10PM +0100, Guillem Jover wrote: > > I think this might have been a problem with the systemd service, which > > does not seem to give the same POSIX capabilities as the capsh > > invocation. I can probably test

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-14 Thread Marc Haber
On Thu, Mar 09, 2023 at 02:46:10PM +0100, Guillem Jover wrote: > I think this might have been a problem with the systemd service, which > does not seem to give the same POSIX capabilities as the capsh > invocation. I can probably test this hypothesis by installing aide in > one of my systemd-based

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-09 Thread Marc Haber
On Thu, Mar 09, 2023 at 02:46:10PM +0100, Guillem Jover wrote: > Sorry for apparently dropping the ball on this, but was trying to dig > further what was going on, and tried directly on my production system > by doing changes and letting the cron job run as usual, so had to wait > a couple of days

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-09 Thread Guillem Jover
Hi! On Thu, 2023-03-09 at 14:07:45 +0100, Marc Haber wrote: > Control: retitle -1 non-root check in dailyaidecheck might be unnecessary > Control: tags -1 patch > Control: severity -1 normal > On Sun, Mar 05, 2023 at 07:14:14PM +0100, Guillem Jover wrote: > > Something like the attached patch

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-09 Thread Marc Haber
Control: retitle -1 non-root check in dailyaidecheck might be unnecessary Control: tags -1 patch Control: severity -1 normal On Sun, Mar 05, 2023 at 07:14:14PM +0100, Guillem Jover wrote: > Something like the attached patch might do I guess? Will test properly > later today, and further check the

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-05 Thread Marc Haber
On Sun, Mar 05, 2023 at 11:26:06PM +0100, Guillem Jover wrote: > On Sun, 2023-03-05 at 20:36:01 +0100, Marc Haber wrote: > > On Sun, Mar 05, 2023 at 05:31:16PM +0100, Guillem Jover wrote: > > > The daily aide cron job warns that it cannot send mail as non-root > > > user. Was wondering why or how

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-05 Thread Guillem Jover
On Sun, 2023-03-05 at 20:36:01 +0100, Marc Haber wrote: > On Sun, Mar 05, 2023 at 05:31:16PM +0100, Guillem Jover wrote: > > The daily aide cron job warns that it cannot send mail as non-root > > user. Was wondering why or how to change or workaround that, and saw > > commit

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-05 Thread Guillem Jover
Hi! On Sun, 2023-03-05 at 17:31:16 +0100, Guillem Jover wrote: > Package: aide > Version: 0.18-2 > Severity: important > The daily aide cron job warns that it cannot send mail as non-root > user. Was wondering why or how to change or workaround that, and saw > commit

Bug#1032387: aide: Cron job does not send mail with new _aide user

2023-03-05 Thread Guillem Jover
Package: aide Version: 0.18-2 Severity: important Hi! The daily aide cron job warns that it cannot send mail as non-root user. Was wondering why or how to change or workaround that, and saw commit e82b5c9112d95b5c813ee29c3234733ae0f2c862, but it is not clear why mail from non-root was disabled,