[vdr] Re: set system time without root priviledges

Sebastian Frei Sebastian at schnapsleichen.de
Sun Jul 24 11:10:38 CEST 2005


Am Sonntag 24 Juli 2005 09:19 schrieb Simon Baxter:
> > Simon Baxter wrote:
> >> Can't I just add an entry in sudoers for the date command?  Can I
> >> incorporate a 'sudo date set' into vdr??
> >
> > The settime patch does it this way. It may need several attempts, because
> > all the user- and process-switching adds some delay to the clock, but it
> > works. The su implementation is imho a lot cleaner way though.
> >
> > See:
> >
> >   http://www.vdr-wiki.de/wiki/index.php/Settime-patch
> >   http://www.linuxtv.org/vdrwiki/index.php/Settime-patch
> >
> > A patched version for recent builds is here:
> >
> >   http://urichter.cjb.net/vdr/?h=settime&l=en
>
> If I'm understanding the su correctly, and vdr must be run as root but the
> date set will be done by another user, I can't see the point!  If you're
> running vdr as root you're already running an 'untrusted' application with
> full machine rights.  Why then switch to another user just for the date
> set?
It's exactly the opposite: VDR drops all root privileges, except the 
capability to set the time.

S.



More information about the vdr mailing list