LinuxQuestions.org
Help answer threads with 0 replies.
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 06-25-2008, 09:07 AM   #1
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Rep: Reputation: 15
user nobody performed su?


Hi guys, I have some /var/log/auth.log entries that I don't understand well.

First, there's pam_unix session getting opened and closed by root. What's all this opennings and closings?

Second, the user nobody performed su. What could this be?

There isn't an IP associated with any of this, so I probably shouldn't be worried. But, I just want to be aware.

I appreciate your advice!

Jun 25 06:09:01 mydomain CRON[16326]: (pam_unix) session opened for user root by (uid=0)
Jun 25 06:09:01 mydomain CRON[16328]: (pam_unix) session opened for user root by (uid=0)
Jun 25 06:09:01 mydomain CRON[16326]: (pam_unix) session closed for user root
Jun 25 06:09:01 mydomain CRON[16328]: (pam_unix) session closed for user root
Jun 25 06:17:01 mydomain CRON[16347]: (pam_unix) session opened for user root by (uid=0)
Jun 25 06:17:01 mydomain CRON[16347]: (pam_unix) session closed for user root
Jun 25 06:25:01 mydomain CRON[16350]: (pam_unix) session opened for user root by (uid=0)
Jun 25 06:25:02 mydomain su[16390]: Successful su for nobody by root
Jun 25 06:25:02 mydomain su[16390]: + ??? root:nobody
Jun 25 06:25:02 mydomain su[16390]: (pam_unix) session opened for user nobody by (uid=0)
Jun 25 06:25:02 mydomain su[16390]: (pam_unix) session closed for user nobody
Jun 25 06:25:02 mydomain su[16394]: Successful su for nobody by root
Jun 25 06:25:02 mydomain su[16394]: + ??? root:nobody
Jun 25 06:25:02 mydomain su[16394]: (pam_unix) session opened for user nobody by (uid=0)
Jun 25 06:25:02 mydomain su[16394]: (pam_unix) session closed for user nobody
Jun 25 06:25:02 mydomain su[16396]: Successful su for nobody by root
Jun 25 06:25:02 mydomain su[16396]: + ??? root:nobody
Jun 25 06:25:02 mydomain su[16396]: (pam_unix) session opened for user nobody by (uid=0)
Jun 25 06:25:02 mydomain su[16396]: (pam_unix) session closed for user nobody
Jun 25 06:25:03 mydomain CRON[16350]: (pam_unix) session closed for user root
Jun 25 06:39:01 mydomain CRON[16470]: (pam_unix) session opened for user root by (uid=0)

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:29 PM.
 
Old 06-25-2008, 11:26 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I don't know about the pam stuff, but the su looks pretty innocuous. It is root becoming nobody, not nobody becoming root.
 
Old 06-25-2008, 12:27 PM   #3
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Original Poster
Rep: Reputation: 15
thanks for clearing this up! So, is there anyway I can find out what the pam_sessions are doing?

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:30 PM.
 
Old 06-25-2008, 12:49 PM   #4
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Look at your system/root cron jobs and grep for nobody.

There were three process that su'd from root to nobody all within 1 second, Jun 25 06:25:02.
 
Old 06-25-2008, 07:29 PM   #5
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Original Poster
Rep: Reputation: 15
hmm I think this is how you look at system/cron jobs:

mydomain:/etc/cron.daily# ls -l
total 40
-rwxr-xr-x 1 root root 5041 2007-02-26 16:21 apt
-rwxr-xr-x 1 root root 314 2007-03-14 10:11 aptitude
-rwxr-xr-x 1 root root 502 2007-01-02 12:26 bsdmainutils
-rwxr-xr-x 1 root root 3961 2007-01-20 04:46 exim4-base
-rwxr-xr-x 1 root root 419 2007-07-30 13:24 find
-rwxr-xr-x 1 root root 89 2006-04-08 18:16 logrotate
-rwxr-xr-x 1 root root 946 2007-01-29 07:20 man-db
-rwxr-xr-x 1 root root 3283 2006-12-19 19:02 standard
-rwxr-xr-x 1 root root 1307 2006-05-25 05:38 sysklogd

so which ones are the culprits..

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:30 PM.
 
Old 06-26-2008, 02:18 PM   #6
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Code:
grep nobody *
If any of the files contain "nobody", then they will be listed with the matching line(s).

Howto use grep command in Linux - UNIX
http://www.cyberciti.biz/faq/howto-u...in-linux-unix/
 
Old 07-08-2008, 11:50 AM   #7
jamesapnic
Member
 
Registered: Jul 2008
Posts: 40

Rep: Reputation: 15
I think you will find thats most likely the locatedb being updated, for when you type updatedb
It su's to nobody to prevent any malicious files placed by users from compromising super user access.
 
Old 07-09-2008, 12:23 PM   #8
twlilinux
Member
 
Registered: Jan 2006
Distribution: debian
Posts: 63

Original Poster
Rep: Reputation: 15
Yeah, I didn't think this is likely a security breach either. But I'm still curious. I typed grep -R nobody ./ and just as bsdunix said, it returned:

./find:LOCALUSER="nobody"

I googled linux cron.daily find and many results showed up that the find process is run by user nobody. I have no idea what "find" is, but I'm sure it's harmless

-------
My favorite websites:
Buy and sell class notes, old exams, papers, lab reports, admission essays.
Ask and answer Linux questions.
Read free books without walking to the library.

Last edited by twlilinux; 08-15-2008 at 03:30 PM.
 
  


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
Windows performed better - what am I doing wrong?! endif Linux - Newbie 12 06-25-2008 12:05 PM
error: MPPE required, but MS-CHAP[v2] auth not performed. verdele_gruia Linux - Networking 1 06-05-2006 01:53 PM
Performed mkswap on / partition! phaeton Linux - General 3 03-15-2006 09:18 AM
Java - Halting a Program until an action is performed. logosys Programming 11 10-07-2005 03:17 PM
What is the most important task that should be performed on the Unix server? thatgentleman Linux - General 7 03-23-2002 09:02 PM

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

All times are GMT -5. The time now is 03:54 PM.

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