You are not logged in.

#1 2013-07-09 06:43:20

b1tgl0w
Member
Registered: 2011-11-30
Posts: 42

[SOLVED] logratate Dumped Core, crond caused Computer Crash

I left my computer on while on a trip. I came back and saw that it had crashed. journalctl reported this:

segfault at d0 ip (some long number) sp (some long number) error 4 in logrotate[4]
process 556 (logrotate) dumped core.

About thirty minutes later, I saw that crond had logged in as root. Then the computer crashed, rebooted to an encryption password prompt.

Jul 01 12:01:01 b1tviolin CROND[670]: pam_unix(crond:session): session closed for user root
Jul 01 12:01:01 b1tviolin CROND[671]: (root) CMD (run-parts /etc/cron.hourly)
Jul 01 12:01:01 b1tviolin crond[670]: pam_unix(crond:session): session opened for user root by (uid=0)
Jul 01 11:01:01 b1tviolin CROND[648]: pam_unix(crond:session): session closed for user root
Jul 01 11:01:01 b1tviolin CROND[649]: (root) CMD (run-parts /etc/cron.hourly)
Jul 01 11:01:01 b1tviolin crond[648]: pam_unix(crond:session): session opened for user root by (uid=0)

Is it normal for crond to run as the root user?

crontab

#1 0 * * * /bin/bash /home/b1tgl0w/MyCreations/Scripts/RSystemBackupShutdown.bash
#0 20 * * * /usr/bin/unison BassDerby
#0 20 * * * /usr/bin/unison PaletteHarmony
#0 20 * * * /usr/bin/unison GameProgrammingForTeensCppLevel1

I had sshd running with the following relevant configuration,

DenyUsers root, ... all users except foo
AllowUsers foo
Relevant passwd
foo:x:...:...:/home/foo:/sbin/nologin

Was I possibly hacked?

Thank you for your time.

Last edited by b1tgl0w (2013-07-09 19:18:36)

Offline

#2 2013-07-09 06:45:47

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: [SOLVED] logratate Dumped Core, crond caused Computer Crash

b1tgl0w wrote:

Is it normal for crond to run as the root user?

Completely normal. I'd be asking the question "was I hacked" if I found cron NOT running as root.

I'd say your computer just crashed.

Offline

#3 2013-07-09 06:46:41

b1tgl0w
Member
Registered: 2011-11-30
Posts: 42

Re: [SOLVED] logratate Dumped Core, crond caused Computer Crash

Thank you, I will keep this thread unsolved for a period of time while other opinions are posted.

Offline

#4 2013-07-09 19:17:43

b1tgl0w
Member
Registered: 2011-11-30
Posts: 42

Re: [SOLVED] logratate Dumped Core, crond caused Computer Crash

I learned that there was a power outage during my trip. Solved.

Offline

Board footer

Powered by FluxBB