Add user directive for dropping root privileges

This is equivalent to the -u option.
This commit is contained in:
Miroslav Lichvar
2013-04-26 17:35:58 +02:00
parent f2eb6b165a
commit edda0c60b3
4 changed files with 37 additions and 0 deletions

View File

@@ -1219,6 +1219,7 @@ directives can occur in any order in the file.
* stratumweight directive:: Specify how important is stratum when selecting source
* lock_all directive:: Require that chronyd be locked into RAM.
* tempcomp directive:: Specify temperature sensor and compensation coefficients
* user directive:: Specify user for dropping root privileges
@end menu
@c }}}
@@ -2882,6 +2883,15 @@ every 30 seconds. When the temperature is 26 degress (26000), the system clock
frequency will not be adjusted. When it is 27 degrees (27000), the clock will
be set to run 0.183ppm faster than it would be without the compensation, etc.
@c }}}
@c {{{ user
@node user directive
@subsection user
The @code{user} directive sets the name of the user to which will
@code{chronyd} drop root privileges after the initialisation. So far, it works
only on Linux when compiled with capabilities support.
By default, root privileges are not dropped.
@c }}}
@c }}}
@c {{{ S:Running chronyc