Alot of CRON messages on logs

Post Reply
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Alot of CRON messages on logs

Post by admin »

Code: Select all

Mar  7 18:17:01 DGLD705 CRON[18897]: pam_unix(cron:session): session closed for user root
Mar  7 18:39:01 DGLD705 CRON[19029]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar  7 18:39:02 DGLD705 CRON[19029]: pam_unix(cron:session): session closed for user root
Mar  7 19:09:01 DGLD705 CRON[19251]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar  7 19:09:01 DGLD705 CRON[19251]: pam_unix(cron:session): session closed for user root
Mar  7 19:17:01 DGLD705 CRON[19317]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar  7 19:17:01 DGLD705 CRON[19317]: pam_unix(cron:session): session closed for user root
Mar  7 19:39:01 DGLD705 CRON[19478]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar  7 19:39:01 DGLD705 CRON[19478]: pam_unix(cron:session): session closed for user root
Mar  7 20:09:01 DGLD705 CRON[19679]: pam_unix(cron:session): session opened for user root by (uid=0)
Testing solution:
http://askubuntu.com/questions/250105/t ... n-logwatch

--
Go to the /etc/pam.d directory. Open the file common-session-noninteractive in an editor. Look for the following line:

Code: Select all

session required pam_unix.so
Above this line, add the following:

Code: Select all

session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid
Save the file and exit. Restart crond using something like service cron restart or /etc/init.d/cron restart.

Source: http://languor.us/cron-pam-unix-cron-se ... -root-uid0
--
..
Post Reply