Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] fcron: writes logs but it should not...
Date: Mon, 18 Jul 2011 19:50:20
Message-Id: 4E248E1A.2090107@gmail.com
In Reply to: Re: [gentoo-user] fcron: writes logs but it should not... by Michael Mol
1 On 18-Jul-11 21:24, Michael Mol wrote:
2 > On Mon, Jul 18, 2011 at 3:16 PM, Jarry<mr.jarry@×××××.com> wrote:
3 >> On 18-Jul-11 21:07, Michael Mol wrote:
4 >>>>
5 >>>> -----
6 >>>> 2011-07-18T18:41:02+00:00 game fcron[30787]: pam_unix(fcron:session):
7 >>>> session opened for user root by (uid=0)
8 >>>> 2011-07-18T18:41:04+00:00 game fcron[30787]: pam_unix(fcron:session):
9 >>>> session closed for user root
10 >>>
11 >>>> Now my question is: why is fcron sending messages to /dev/log,
12 >>>> when it should not do it?
13 >>>
14 >>> If I'm reading that correctly, it's not really fcron that's logging, but
15 >>> PAM.
16 >>
17 >> I thought it is because cron is opening session as root.
18 >> There is nothing else that could fire pam every 10 min.
19 >>
20 >> I already checked /etc/cron.hourly (daily, weekly, monthly),
21 >> there is nothing else that could cause it. And the process
22 >> name calling syslog is "fcron" (3rd field in message)...
23 >
24 > Cron is opening a session as root. Pam is part of that process. Pam is
25 > logging its participation in that process.
26 >
27 > At least, that's what it looks like from here.
28 >
29
30 I'm no expert for logging, but I think syslog-message looks like:
31 <priority> timestamp hostname program[pid]: message
32
33 So to me it looks fcron (pid 30787) is sending output to
34 /dev/syslog. pam is sending message back to fcron but not
35 to syslog. And I wonder why fcron is forwarding that message
36 to syslog, when it should not...
37
38 Jarry
39
40 --
41 _______________________________________________________________
42 This mailbox accepts e-mails only from selected mailing-lists!
43 Everything else is considered to be spam and therefore deleted.

Replies

Subject Author
Re: [gentoo-user] fcron: writes logs but it should not... Michael Mol <mikemol@×××××.com>