|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
I did read Carpetsmoker advice but did not want to go down that route unless i had to, which in the end i had to try but even that did not work?
edited rc.conf Quote:
rebooted but still can't change time Quote:
cheers |
|
|||
Post whole contents of /etc/rc.conf
post again output of # sysctl kern.securelevel
|
|
|||
Quote:
Quote:
Quote:
|
|
|||
Nasty ex-administrator
post output of /etc/sysctl.conf and output of following command: # cat /etc/defaults/rc.conf |grep securelevel and just to be sure: # sysctl security.jail
|
|
|||
thanks for reply
Quote:
Quote:
Quote:
|
|
||||
Remove (or comment out) the line"
kern.securelevel=2 in /etc/sysctl.conf. The reason the rc script doesn't work is probably because it gets executed after /etc/rc.d/securelevel, which can be fixed easily by adding BEFORE: securelevel to the ntpd startup script ... See rcorder(8)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
thanks for replies.
To clarify, i don't need line: Code:
kern.securelevel=2 in /etc/sysctl.conf /etc/defaults/rc.conf should be: Code:
kern_securelevel_enable="NO" # kernel security level (see init(8)), kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure Also that the setting in rc.conf overrides that in /etc/defaults/rc.conf ? Changing entry in sysctl.conf and moving openntp entry above kern_securelevel="1" in rc.conf resulted in time being set correctly on boot. Now this done i believe i should have following setup: rc.conf Code:
kern.securelevel="2" /etc/defaults/rc.conf Code:
kern_securelevel_enable="NO" # kernel security level (see init(8)), kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure /etc/sysctl.conf Code:
# kern.securelevel="2" many thanks |
|
||||
Quote:
Quote:
Quote:
Quote:
% sysctl kern.securelevel
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Hello and many thanks for everyones help, i have sorted issue and have learnt something
Date time are now correct and secure level is "2": Code:
cp# sysctl kern.securelevel kern.securelevel: 2 cp# date Mon 7 Jul 2008 10:45:15 BST cp# |
|
||||
Now that's done, make sure you are either running ntpd (the best way) or regularly running ntpdate, so it keeps the time accurate, and you won't have to do this again.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
|||
Robbak, carpman installed OpenNTP, which does not provide ntpdate, it provides rdate.
Starting openntpd with the -s option causes the time to be corrected at boot time..
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
Tags |
clock, date, ntpd, openntpd, securelevel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
configure clock in xfce | delboy | FreeBSD General | 7 | 3rd September 2008 06:36 PM |