LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-21-2013, 09:42 PM   #1
tac-shell
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
Question about questionable auth.log entries.


First of all I like to say hi to everyone out there in the community. I've found countless solutions to my many frustration as I've learned to use linux. But this is the first time I've had a question specific enough to warrant a post of my own.

So I was looking over some old auth.log entries on my Debian server (squeeze) and I noticed the following two lines:

Code:
Nov 23 06:25:01 hesiod CRON[3969]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 23 06:26:50 hesiod su[4122]: Successful su for nobody by root
Nov 23 06:26:50 hesiod su[4122]: + ??? root:nobody
Nov 23 06:26:50 hesiod su[4122]: pam_unix(su:session): session opened for user nobody by (uid=0)
Nov 23 06:27:16 hesiod su[4122]: pam_unix(su:session): session closed for user nobody
The second line is really the one that is the most troubling. If I'm not mistaken (which may very well be the case) the ??? should be the TTY device that was used for the session.
 
Old 01-21-2013, 10:10 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you checked for entries in other logs with the same timestamp? Since it's changing to nobody from root, it could be a normal part of something's startup.
 
Old 01-22-2013, 04:46 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Check your crontab entries if some script or job scheduled to perform this .

Thanks
 
Old 01-22-2013, 11:03 PM   #4
tac-shell
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I took your suggestion gilead and wrote a script that searched through all the logs in /var/log for the time stamp of the entries in my original excerpt and the only thing that was found was the original three lines that had piqued my interest. However, when I searched for the "+ ???" string I was able to find the following three lines:

Code:
Jan 18 06:37:59 hesiod su[2815]: Successful su for nobody by root
Jan 18 06:37:59 hesiod su[2815]: + ??? root:nobody
Jan 18 06:37:59 hesiod su[2815]: pam_unix(su:session): session opened for user nobody by (uid=0)
So what ever wrote these entries has recurred recently.

Vishesh, currently my crontab for root is empty on this machine. Is there another place were tasks for the cron daemon would be stored?
 
Old 01-23-2013, 08:21 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try
Code:
grep -r /etc/crontab /etc/cron*/ -e "su ";
 
Old 01-23-2013, 07:58 PM   #6
tac-shell
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
unSpawn, I ran the command you suggested and found:

Code:
/etc/cron.daily/popularity-contest:	su -s /bin/sh -c "/usr/sbin/popularity-contest" nobody
Which would explain the su to nobody by root. However, this entry is listed under cron.daily so why aren't there daily records of this command being run in the auth.log? In any case it seems that those lines are no cause for alarm.
 
Old 01-23-2013, 08:20 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by tac-shell View Post
However, this entry is listed under cron.daily so why aren't there daily records of this command being run in the auth.log?
Because of the priority / facility assigned to user auth by the system and how /etc/(r)syslog(-ng).conf is configured to log that in which log file?


Quote:
Originally Posted by tac-shell View Post
In any case it seems that those lines are no cause for alarm.
It does seem so. Should you wish to investigate things further have a look at 'man crond' for debug settings, SAR like Atop, Dtstat or Collectl and the audit service.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help understanding auth.log entries someone trying root access? jimdaworm Linux - Security 4 12-16-2008 03:27 AM
removing cron entries from auth.log divukman Linux - Software 2 05-27-2006 05:53 AM
/var/log/auth.log entries buehler Linux - Security 1 04-23-2005 04:45 PM
qmail question - log entries groovin Linux - Networking 0 08-12-2003 10:12 AM
question regarding log entries epeus Linux - Security 6 01-09-2003 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration