11645 adjkerntz spam from a jail. - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old April 27th, 2012, 16:08
jnbek's Avatar
jnbek jnbek is offline
Junior Member
 
Join Date: Jan 2010
Location: Wasatch Front, Utah
Posts: 93
Thanks: 22
Thanked 9 Times in 9 Posts
Default adjkerntz spam from a jail.

I've been getting a lot of emails from the periodic crons over the last couple of weeks that read:

Code:
adjkerntz[66176]: sysctl(set: "machdep.wall_cmos_clock"): Operation not permitted
from my apache jail. I recently set the timezone in the jail using tzsetup because jail time didn't match the host time. Since then, I've been getting these offending emails every 30 minutes. It does seem that the jail time is correct, as the crons I have set to fire at 7am and 7pm every day, are now firing at those hours. I just want the sysctl emails from the jail to become silent. Any ideas?
__________________
If you can not able use Perl for answer, you are ask wrong question.

Last edited by DutchDaemon; April 27th, 2012 at 23:01.
Reply With Quote
  #2  
Old April 27th, 2012, 16:38
aa aa is offline
Junior Member
 
Join Date: Mar 2012
Posts: 47
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Edit your /etc/crontab.
Reply With Quote
The Following User Says Thank You to aa For This Useful Post:
gqgunhed (October 24th, 2012)
  #3  
Old May 1st, 2012, 16:00
jnbek's Avatar
jnbek jnbek is offline
Junior Member
 
Join Date: Jan 2010
Location: Wasatch Front, Utah
Posts: 93
Thanks: 22
Thanked 9 Times in 9 Posts
Default

While that's a definite possibility there has to be a better way than just editing /etc/crontab. I need the time to be correct in the jail, I would just rather avoid getting spam..
__________________
If you can not able use Perl for answer, you are ask wrong question.
Reply With Quote
  #4  
Old May 1st, 2012, 18:02
jan jan is offline
Junior Member
 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A jail doesn't have its own timer. So the time is the same time from the base system. You can only control the timezone in a jail.

cheers Jan

Last edited by DutchDaemon; May 1st, 2012 at 18:12.
Reply With Quote
  #5  
Old May 2nd, 2012, 20:46
jnbek's Avatar
jnbek jnbek is offline
Junior Member
 
Join Date: Jan 2010
Location: Wasatch Front, Utah
Posts: 93
Thanks: 22
Thanked 9 Times in 9 Posts
Default

Quote:
Originally Posted by jan View Post
A jail doesn't have its own timer. So the time is the same time from the base system. You can only control the timezone in a jail.

cheers Jan
Very odd, because all the jails (except the one spamming me) are set to UTC but the base system is set to Mountain time (meaning the time is currently 6 hours ahead in the jails compared to the host system). How I managed that is beyond me, but it's annoying
__________________
If you can not able use Perl for answer, you are ask wrong question.

Last edited by DutchDaemon; May 3rd, 2012 at 00:07.
Reply With Quote
  #6  
Old May 3rd, 2012, 08:42
jan jan is offline
Junior Member
 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Run tzsetup in your jails.

Last edited by DutchDaemon; May 3rd, 2012 at 12:24.
Reply With Quote
  #7  
Old May 6th, 2012, 23:49
jnbek's Avatar
jnbek jnbek is offline
Junior Member
 
Join Date: Jan 2010
Location: Wasatch Front, Utah
Posts: 93
Thanks: 22
Thanked 9 Times in 9 Posts
Default

Quote:
Originally Posted by jan View Post
Run tzsetup in your jails.
I did that and that's when the spam started.
__________________
If you can not able use Perl for answer, you are ask wrong question.
Reply With Quote
  #8  
Old July 25th, 2012, 09:31
gqgunhed gqgunhed is offline
Junior Member
 
Join Date: Jun 2012
Location: South Germany
Posts: 73
Thanks: 25
Thanked 11 Times in 11 Posts
Default

I have the same issue at my system.
All jails I ran "tzsetup" in are producing the "adjkerntz" messages as stated above.
Those jails running on UTC time do not have those errors.

Main system has the timezone set to CEST. No problem there.
Reply With Quote
  #9  
Old October 24th, 2012, 21:33
gqgunhed gqgunhed is offline
Junior Member
 
Join Date: Jun 2012
Location: South Germany
Posts: 73
Thanks: 25
Thanked 11 Times in 11 Posts
Default

Problem solved.
As aa stated with the first reply: You must deactivate (say comment out with #) the line in the /etc/crontab in the jail that has the adjkerntz entry.

Code:
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time.  See adjkerntz(8) for details.
#5,31    0-5     *       *       *       root    adjkerntz -a
Reply With Quote
Reply

Tags
adjkerntz, cron, jail, spam, tzsetup

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spam Filter danaeckel General 1 March 3rd, 2012 23:55
spam sites graudeejs Off-Topic 5 January 18th, 2011 12:10
[Solved] Spam folder ccaptainhastings3 Userland Programming & Scripting 1 July 2nd, 2010 16:11
Lot's of spam recently graudeejs Feedback 16 February 11th, 2009 06:11
some answer is spam what my must do mfaridi Feedback 8 November 26th, 2008 16:07


All times are GMT +1. The time now is 03:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0