![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hello, ok my server went down after the power switch in rack it was in at hoster was tripped.
I find that on reboot the system time is wrong: Quote:
if try and reset date it says Quote:
but on checking date again it appears not to have changed? Quote:
any ideas? cheers |
|
|||
![]()
Thanks for reply, running as root, not sure what you mean by:
Quote:
|
|
|||
![]()
Did you enabled timed(8) ?
|
|
|||
![]()
Not sure as server was setup for me, but will check.
Should add never had this problem before after reboot? |
|
|||
![]()
Ok appears that it is not installed, thing is i cannot compile as clock is out of sync.
I know this as tried to setup ntpd and the error i related to clock/time being incorrect? |
|
|||
![]()
Update, although pkg_info does not show 'timed' i found this is logs:
Quote:
Bear in mind date on server is incorrect. cheers |
|
||||
![]() Quote:
% sysctl kern.securelevel See init(8)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
![]()
Am I the only one who thinks this user might be running inside of a jail? not a truly dedicated FreeBSD box?
|
|
|||
![]()
Hello, and thanks for replies.
This true freebsd box running 6.2 with hsphere CP output is: Quote:
|
|
||||
![]()
You can't set the clock with a securelevel of 2 or higher, from init(8):
Code:
The kernel runs with five different levels of security. Any super-user process can raise the security level, but no process can lower it. The security levels are: [...] 2 Highly secure mode - same as secure mode, plus disks may not be opened for writing (except by mount(2)) whether mounted or not. This level precludes tampering with file systems by unmounting them, but also inhibits running newfs(8) while the system is multi- user. In addition, kernel time changes are restricted to less than or equal to one second. Attempts to change the time by more than this will log the message ``Time adjustment clamped to +1 second''.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
![]()
Ok cheers, trouble is i can't reboot into single mode as it is remote server, can't compile as time is wrong, i could try adding pkg instead of compiling but still letf with issue of why time is wrong?
will try installing pkg ntpd |
|
|||
![]()
Ok i got openntpd installed and added following to rc.conf
Quote:
From what read in Freebsd handbook ntpdate is best option for big change in time even when using ntpd. cheers |
|
|||
![]() Quote:
Does this mean i am going to have to go into data center and change it? cheers |
|
|||
![]()
Note running ntpdate from console gives:
Quote:
|
|
|||
![]()
You are having the same problem as me some time ago: reading the wrong man pages
![]() See http://www.bsdforums.org/forums/showthread.php?t=47395 for a tip of Phoenix to locate the man pages of OpenNTPD. Or see http://www.freebsd.org/cgi/man.cgi?q...SE&format=html which says Quote:
Code:
openntpd_flags="-s"
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
![]()
Basically, work out where securelevels have been set, adjust that setting, and reboot. Provided your security-paranoic predecessor hasn't also locked that down.....
The general way is using rc.conf. there are two securelevel settings there: Code:
kern_securelevel_enable (bool) Set to ``YES'' to set the kernel security level at system startup. kern_securelevel (int) The kernel security level to set at startup. The allowed range of value ranges from -1 (the compile time default) to 3 (the most secure). See init(8) for the list of possible security levels and their effect on system opera- tion.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
|||
![]()
Thanks for replies, ok i tried adding following to rc.conf but no joy
![]() Quote:
Looks like i am going to have to look at secure levels, which not something i wanted to play with. cheers |
|
|||
![]()
All of those programs change the time using the same API, and if you *read* the advice offered to you by Carpetsmoker you would have fixed this much sooner.
Clearly the previous maintainer ran the system at a higher level for some reason, consider lowering it, setting the time, and then returning to the higher value. This will require modifying configuration files. |
![]() |
Tags |
clock, date, ntpd, openntpd, securelevel |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
configure clock in xfce | delboy | FreeBSD General | 7 | 3rd September 2008 06:36 PM |