Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, I'm having some problem with PAM because that thing is filling up my log with useless msg every time CRON start jobs. The problem is that I have some cron jobs executed every 5 or 10 min.
So my logs look like :
Aug 4 20:55:01 router PAM_unix[19674]: (cron) session opened for user root by (uid=0)
Aug 4 20:55:01 router /USR/SBIN/CRON[19675]: (root) CMD (/etc/init.d/ipupdate >> /dev/null)
Aug 4 20:55:04 router PAM_unix[19674]: (cron) session closed for user root
Aug 4 21:00:01 router PAM_unix[19728]: (cron) session opened for user root by (uid=0)
Aug 4 21:00:01 router /USR/SBIN/CRON[19729]: (root) CMD (/etc/init.d/ipupdate >> /dev/null)
Aug 4 21:00:02 router PAM_unix[19728]: (cron) session closed for user root
Aug 4 21:05:01 router PAM_unix[19788]: (cron) session opened for user root by (uid=0)
Aug 4 21:05:01 router /USR/SBIN/CRON[19789]: (root) CMD (/etc/init.d/ipupdate >> /dev/null)
Aug 4 21:05:02 router PAM_unix[19788]: (cron) session closed for user root
Aug 4 21:10:01 router PAM_unix[19822]: (cron) session opened for user root by (uid=0)
Aug 4 21:10:01 router /USR/SBIN/CRON[19823]: (root) CMD (/etc/init.d/ipupdate >> /dev/null)
Aug 4 21:10:02 router PAM_unix[19822]: (cron) session closed for user root
Well, pretty annoying! Is there a way to shut up PAM or just force it to run in quiet mode?
You might try changing /etc/syslog.conf to not log the PAM messages.
For example if PAM classifies the messages as info then you could have a line in /etc/syslog.conf that says:
*.info /dev/null
This will eliminate all info messages from any program.
Similarly if PAM classifies the messages as notice then you could have a line in /etc/sylogd.conf that says:
*.notice /dev/null
well it's not a good solution since I need some info or notice msg that are not coming from PAM. But thanks you anyways I think it will end like this soon, I'm pretty tired of all these useless msg.
There's no ways to gently ask PAM to stop logging sucessful action, as example?
You might try changing /etc/syslog.conf to not log the PAM messages.
Bad, damn bad suggestion. PAM and other access methods' logging is there for a reason. Half_Elf, if you got problems *reading* your (logrotated) logs, try to pull them tru a logparser like Logsurfer or Logwatch to shake off the crud else pipe them tru a filter, maybe something like this: http://www.linuxquestions.org/questi...984#post410984
unSpawn: well, habitually, I use tail -f to keep an eye on my log. I suppose I'll have to learn perl to code something to show me everything BUT these annoying PAM msg
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.