mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 15:35:07 -05:00
configure: add option to set default user
The default user is root by default, which disables root dropping by default. The user directive or the -u option can still be used to set the user.
This commit is contained in:
@@ -1028,8 +1028,9 @@ to work well, it relies on @code{chronyd} having been able to determine
|
||||
accurate statistics for the difference between the real time clock and
|
||||
system clock last time the computer was on.
|
||||
@item -u <user>
|
||||
When this option is used, chronyd will drop root privileges to the specified
|
||||
user. So far, it works only on Linux when compiled with capabilities support.
|
||||
This option sets the name of the user to which will @code{chronyd} switch to
|
||||
drop root privileges if compiled with Linux capabilities support (default
|
||||
@code{@DEFAULT_USER@}).
|
||||
@item -q
|
||||
When run in this mode, @code{chronyd} will set the system clock once
|
||||
and exit. It will not detach from the terminal.
|
||||
@@ -2958,10 +2959,11 @@ be set to run 0.183ppm faster than it would be without the compensation, etc.
|
||||
@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.
|
||||
@code{chronyd} switch on initialisation to drop root privileges.
|
||||
So far, it works only on Linux when compiled with capabilities support.
|
||||
Setting the name to root will disable it.
|
||||
|
||||
By default, root privileges are not dropped.
|
||||
The default value is @code{@DEFAULT_USER@}.
|
||||
@c }}}
|
||||
@c }}}
|
||||
@c {{{ S:Running chronyc
|
||||
|
||||
Reference in New Issue
Block a user