Subject: Re: step-systime: EPERM
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: current-users
Date: 09/23/2006 20:51:10
Hi,
Frank Kardel --> current-users (2006-09-23 20:11:29 +0200):
> you need to make sure /var/chroot/dev/clockctl exists and is accessible
> to the user
> ntpd is running under (usually user root group ntpd).
$ ps -axuww -p$(pgrep ntpd)
USER PID %CPU %MEM VSZ RSS TTY STAT STARTED TIME COMMAND
ntpd 596 0.0 0.4 1124 3652 ? Ss 6:21PM 0:00.15 /usr/sbin/ntpd -u ntpd:ntpd -i /var/chroot/ntpd
$ ls -l /var/chroot/ntpd/dev/clockctl
crw-rw---- 1 root ntpd 89, 0 Sep 19 19:45 /var/chroot/ntpd/dev/clockctl
> Also make sure
> your kernel
> supports pseudo-device clockctl.
$ strings /netbsd | sed -n '/^_CFG_.*clockctl/p' | unvis
_CFG_###> pseudo-device clockctl # user control of clock subsystem
BTW:
$ grep '^[^#]' /etc/ntp.conf
pidfile /var/run/ntpd.pid
driftfile /var/db/ntp.drift
logconfig -syncstatus
server time1
server time2
This machine is running ntpd for about a year, and I've not seen this
`step-systime: Operation not permitted' message until I recently updated
the system...
Regards, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~