Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Phillip Programmer" <programmer.phillip@gmail.com>
To: linux-audit@redhat.com
Subject: cron and aureport
Date: Thu, 20 Nov 2008 12:10:23 -0600	[thread overview]
Message-ID: <d93f7c710811201010x521cab71s21b1b92874bc5732@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 906 bytes --]

Hi,

We are running into a strange issue when we run reports inside of a script
as root everything works fine.  When we point the root crontab at the same
script it no longer returns any results.

For example we have the script something like this  below:


#!/bin/bash
#
# script foo.sh
# report to log.
###########################################
/sbin/aureport   -i -f  -ts today  --failed  > /root/someloghere
# end script


When we run foo.sh as root from a command prompt it works fine.

When we run it from a crontab it doesn't return any results.


We has also tried adding the path to the file .
/sbin/aureport   -i -f  -ts today  --failed  > /root/someloghere  -if
/var/log/audit/audit.log  > /root/someloghere


We are running RHEL5.1 x64 if that matters.

I also downloaded and built the aureport and ausearch   still it had to
effect.

Is there something we are doing wrong?


Thanks

Phillip

[-- Attachment #1.2: Type: text/html, Size: 1165 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2008-11-20 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 18:10 Phillip Programmer [this message]
2008-11-24 13:21 ` cron and aureport Steve Grubb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d93f7c710811201010x521cab71s21b1b92874bc5732@mail.gmail.com \
    --to=programmer.phillip@gmail.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox