LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-09-2009, 07:54 PM   #1
linuxfia
Member
 
Registered: Apr 2008
Distribution: ubuntu 7.10, centos 4 & 5
Posts: 84

Rep: Reputation: 15
cron sessions opening hundreds of times


Is it normal for the cron sessions to be opened hundreds of times per day?
I get this almost daily.


Quote:
cron:
Sessions Opened:
root: 345 Time(s)
Quote:
Jan 4 10:05:01 srv CRON[11065]: pam_unix(cron:session): session opened for us
er root by (uid=0)
Jan 4 10:05:03 srv CRON[11065]: pam_unix(cron:session): session closed for us
er root
Jan 4 10:09:01 srv CRON[11130]: pam_unix(cron:session): session opened for us
er root by (uid=0)
Jan 4 10:09:01 srv CRON[11130]: pam_unix(cron:session): session closed for us
er root
Jan 4 10:10:01 srv CRON[11139]: pam_unix(cron:session): session opened for us
er root by (uid=0)
Jan 4 10:10:04 srv CRON[11139]: pam_unix(cron:session): session closed for us
er root
Jan 4 10:15:01 srv CRON[11204]: pam_unix(cron:session): session opened for us
er root by (uid=0)
Jan 4 10:15:04 srv CRON[11204]: pam_unix(cron:session): session closed for us
er root
Jan 4 10:17:01 srv CRON[11269]: pam_unix(cron:session): session opened for us
er root by (uid=0)
Jan 4 10:17:01 srv CRON[11269]: pam_unix(cron:session): session closed for us
er root
Jan 4 10:20:01 srv CRON[11272]: pam_unix(cron:session): session opened for us
er root by (uid=0)
Jan 4 10:20:03 srv CRON[11272]: pam_unix(cron:session): session closed for us
 
Old 01-10-2009, 03:52 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
take a look at the cronjobs that are installed.
 
Old 01-12-2009, 12:10 PM   #3
linuxfia
Member
 
Registered: Apr 2008
Distribution: ubuntu 7.10, centos 4 & 5
Posts: 84

Original Poster
Rep: Reputation: 15
There's only root cron and none of the jobs are set to launch every minute...
 
Old 01-12-2009, 08:33 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,814

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
You need to examine closely what those cron jobs are actually doing. Could be looping, could be retrying something.
Those msgs say that a prog that is running as the cron user is trying to connect/login/switch user frequently.
 
Old 01-12-2009, 10:43 PM   #5
BinWondrin
Member
 
Registered: Jun 2008
Distribution: Fedora, RHEL, Ubuntu
Posts: 33

Rep: Reputation: 15
Other than other UNIX systems, Linux has a whole array of cron directories in which cron jobs can be placed.
So, if you issue to list cronjobs
Code:
crontab -l
you will only see whatever was created with
Code:
crontab -e
If you check the contents of the following directories:
Code:
cron.d/
cron.monthly/ 
cron.weekly/  
cron.daily/
cron.hourly/
you will find other re-defined cron jobs such as log rotate etc.

This might be where you can find your mysterious cron jobs.

Hope this helps.
:-)

BW
 
Old 01-14-2009, 07:24 PM   #6
linuxfia
Member
 
Registered: Apr 2008
Distribution: ubuntu 7.10, centos 4 & 5
Posts: 84

Original Poster
Rep: Reputation: 15
Thanks.
I checked all the crons (var/spool/cron/crontab/) and in the /etc/cron... directories and it's hard to find out which cron is causing this. The log doesn't say which cron so it's difficult to pinpoint.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running cron jobs at random times fakie_flip Linux - Software 3 11-15-2017 01:54 PM
cron executes job three times at the same time rimvydazas Linux - Software 2 02-07-2008 03:47 PM
Is there a way to view what times cron jobs will run? MikeyCarter Linux - Software 6 01-17-2008 02:45 AM
Weird hourly cron sessions opening and closing for 'root' musicbrio Red Hat 4 09-12-2007 09:14 PM
problem in opening multiple Terminall Sessions in the same Terminal Window gem_skywalker Linux - General 2 12-19-2003 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:06 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