I try to use the hwclock but I get this output:
[arkadi@arkadi-linux /home/arkadi $]hwclock
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
When I use debug I got this message:
[arkadi@arkadi-linux /home/arkadi $]hwclock --debug
hwclock from util-linux 2.26.2
hwclock: cannot open /dev/rtc: Permission denied
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
I using :
Linux arkadi-linux 4.0.7-2-ARCH #1 SMP PREEMPT Tue Jun 30 07:50:21 UTC 2015 x86_64 GNU/Linux
The permissions of /dev/rtc0
are:
crw-rw---- 1 root audio 254, 0 Jul 5 2015 /dev/rtc0
my group memberships are:
uid=1000(arkadi) gid=100(users) groups=100(users),10(wheel),95(storage),98(power)
how to fix it?
With sudo it works:
[arkadi@arkadi-linux / $]sudo hwclock
Sun 05 Jul 2015 11:35:31 AM IDT .339125 seconds
But it worked some time without sudo also.
sudo hwclock ...
– muru Jul 5 '15 at 8:30/dev/rtc0
(ls -l /dev/rtc0
)? What are you group memberships (id
)? – muru Jul 5 '15 at 8:44/dev/rtc0
, especially theaudio
group, which seems completely irrelevant. On my system the permissions are0600
and grouproot
. The insecure permissions you have for it on your system are a security concern, but they might explain how come you were able to access it in the past without being root. – Celada Jul 5 '15 at 8:56/dev
. – muru Jul 5 '15 at 9:00