Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-10-2011, 06:50 AM   #1
LQ Newbie
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Question /dev/rtc not readable with CAP_SYS_RESOURCE capability

I need to run the ntpd without root privileges, which should be possible via libcap support which is available for the ntpd.

But I have a private ntpd reference clock driver for the realtime clock (/dev/rtc) as a reference source. When reading the RTC clock time under non-root account, the open("/dev/rtc",O_RDONLY) fails with error 13: Permission denied. I have read here that the capability permission of CAP_SYS_RESOURCE should allow that. But it doesn't. My ntpd process permissions are "cap_net_bind_service,cap_sys_resource,cap_sys_time+ei".

Is there any way to read the /dev/rtc under non-root account?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/rtc missing! mas123 Linux - Hardware 4 07-27-2009 07:34 AM
Parallels and /dev/rtc error falcon56215 Linux - Software 1 11-27-2006 03:30 PM
missing /dev/rtc meres Linux - General 7 10-17-2005 01:37 PM
Not unknown problem with /dev/rtc carbono Linux - Newbie 1 10-13-2005 08:04 AM
/dev/rtc not currently available in VMWARE, Mandrake 9.2 Guitarist88 Linux - Software 1 04-11-2004 01:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration