From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: RedHat 6 Testing
Date: Fri, 25 Mar 2011 12:15:17 -0400 [thread overview]
Message-ID: <201103251215.18175.sgrubb@redhat.com> (raw)
In-Reply-To: <5CB21FE316752445AF212D47C8BE56110A19C415@XMBVAG75.northgrum.com>
On Friday, March 25, 2011 10:55:43 am Boyce, Kevin P (AS) wrote:
> I have a script in cron.weekly that has a command being executed which I am
> auditing for execve. That part seems to work fine. However, in the
> detailed audit report my user id is associated with the execution. Root
> owns the files there and ultimately root is the effective UID in the
> record, but why am I associated with the activity at all?
What did pam record for the user_start?
ausearch --start today -x crond -m user_start
This should show which account the script will run under. The cron daemon should set
the loginuid to it. That would cause all actions done by the script to be attributed
to that user.
Also, have you restarted the cron daemon? Maybe in inheritted your account. You can
check by this:
cat /proc/`ps -C crond -o pid= | tr -d ' '`/loginuid
-Steve
next prev parent reply other threads:[~2011-03-25 16:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 14:55 RedHat 6 Testing Boyce, Kevin P (AS)
2011-03-25 15:32 ` Sean.Hollinger
2011-03-25 15:39 ` Boyce, Kevin P (AS)
2011-03-25 16:15 ` Steve Grubb [this message]
2011-03-25 18:53 ` EXT :Re: " Boyce, Kevin P (AS)
2011-03-25 21:38 ` 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=201103251215.18175.sgrubb@redhat.com \
--to=sgrubb@redhat.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