LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-10-2011, 07:50 AM   #1
pavel.krejci
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 http://linux.die.net/man/4/rtc 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?
 
  


Reply


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 08:34 AM
Parallels and /dev/rtc error falcon56215 Linux - Software 1 11-27-2006 04:30 PM
missing /dev/rtc meres Linux - General 7 10-17-2005 02:37 PM
Not unknown problem with /dev/rtc carbono Linux - Newbie 1 10-13-2005 09:04 AM
/dev/rtc not currently available in VMWARE, Mandrake 9.2 Guitarist88 Linux - Software 1 04-11-2004 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 AM.

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