Re: cron logging under RHEL 4
- From: "David Tonhofer, m-plify S.A." <d.tonhofer@xxxxxxxxxxx>
- Date: Tue, 23 May 2006 22:51:49 +0200
--On Wednesday, May 24, 2006 7:50 AM +1200 Steve Phillips <steve@xxxxxxxxxx> wrote:
Does anyone know how to turn off the logging messages from cron under redhat RHEL 4 ? I am refering to the messages in /var/log/messages that indicate a user has logged in/out every time a user crontab is called.. these tend to fill up the log files when a user has a number of cron entries that are called every minute.
example..
May 23 14:49:01 wibble crond(pam_unix)[13740]: session opened for user bot by (uid=0)
May 23 14:49:01 wibble crond(pam_unix)[13740]: session closed for user bot
Hi Steve,
First off, why should that be a problem? If you have enough disk space,
and logrotate configured, I wouldn't worry.
But otherwise, check out the man page of "syslog.conf" where you find the
instructions to edit /etc/syslog.conf.
However... these are not messages by cron but by the 'pam' subsystem.
They are logged to syslog with facility 'auth', so you might want
to make all messages logged with facility 'auth' and low urgency go
to nowhere. Like this I think:
auth.debug;auth.info;auth.notice /dev/null
But this may not be what you want as you may want to see other messages.
So the following can also be done: edit /etc/pam.d/crond and make
pam NOT log.... but I'm unsure how to do this. Anyone?
Best,
-- David
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- Re: cron logging under RHEL 4
- From: Steve Phillips
- Re: cron logging under RHEL 4
- References:
- cron logging under RHEL 4
- From: Steve Phillips
- cron logging under RHEL 4
- Prev by Date: DNS GUI
- Next by Date: Re: DNS GUI
- Previous by thread: cron logging under RHEL 4
- Next by thread: Re: cron logging under RHEL 4
- Index(es):
Relevant Pages
- Re: sasl fails
... PAM here means you let PAM call system accounts, ... If you don't offer MD5
mechs because of your auth backend, ... > authentication failure: no secret
in database ... (Fedora) - Re: passwordless root login
... |> Then the login program won't even ask for a password. ... |> simply
edit its pam file. ... | working at some point--I think the pam stuff has changed
a bit. ... appliation asks pam if the auth is valid, pam will say "no" if auth is ...
(Debian-User) - Re: Users without a password?
... PAM is the authentication model employed in Ubuntu. ... to edit the PAM file
that specifies how authentication should work with GDM. ... auth requisite pam_nologin.so
... @include common-auth ... (Ubuntu) - sshd open to everyone if PAM auth sufficient
... I was playing with PAM, ... I changed the auth from "required" to "sufficient"
... configuration file for ssh. ... Apr 9 18:46:48 pigbox sshd: Accepted password
for root from ... (comp.security.ssh) - Re: sshd open to everyone if PAM auth sufficient
... I changed the auth from "required" to "sufficient" ... ](in order to add - later
- other PAM modules) in the PAM ... ]configuration file for ssh. ... If it
fails, then it is ignored, and the other items ... (comp.security.ssh)