aideini -y reports "34:syntax error:(" after fresh install

Bug #231331 reported by Ralf Hildebrandt
4
Affects Status Importance Assigned to Milestone
aide (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: aide

After a fresh install, aideinit -y reports:

# aideinit -y
Running aide --init...
34:syntax error:(
34:Error while reading configuration:(
Configuration error
AIDE --init return code 17; see /var/lib/aide/aide.db.new for details

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote : Re: aideinit -y reports "34:syntax error:(" after fresh install

# less /var/lib/aide/aide.db.new
/var/lib/aide/aide.db.new: No such file or directory

Revision history for this message
enternamo (enternamo) wrote :

I fixed this with this command: (found from debian bug)

for file in $(find /etc/aide/aide.conf.d/ -type f -print 2>/dev/null); do if < $file head -n 1 | grep -q '^#!'; then chmod 755 $file; fi; done

Revision history for this message
enternamo (enternamo) wrote :

Sorry forgot to mention what the bug is,

The bug is some of the aide.conf.d files need to have execute permissions because they are scripts.
You make them executable and things look fine.

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

% egrep -l "^#./bin/bash" * | xargs chmod 755

But it still won't work:

# aideinit -y
Running aide --init...
34:syntax error:(
34:Error while reading configuration:(
Configuration error
AIDE --init return code 17; see /var/lib/aide/aide.db.new for details

Revision history for this message
fool (gently-gmail) wrote :

the 10_aide_hostname file does not start with /bin/bash, only /bin/sh. so perhaps if you ran:

egrep -l "^#!/bin/" * | xargs chmod 755

things would work for you =)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.