I cannot change the time on my system by more than one second! How do I get around this?

I cannot change the time on my system by more than one second! How do I get around this?

Short answer: You are probably at security level greater than 1. Reboot directly to single user mode to change the date.

Long answer: FreeBSD disallows changing the time by more that one second at security levels greater than 1. You can check your security level with the command:

    # sysctl kern.securelevel

You cannot lower the security level; you have to boot to single mode to change the date, or change the security level in /etc/rc.conf then reboot. See the init(8) man page for details on securelevel, and see /etc/defaults/rc.conf and the rc.conf(5) man page for more information on rc.conf.



Home
FAQ