set system time without root priviledges

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Cheers,

Udo


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux