Re: [chrony-users] Chrony without daemon |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Chrony without daemon
- From: Mingye Wang <arthur200126@xxxxxxxxx>
- Date: Tue, 5 Aug 2025 15:20:42 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754378454; x=1754983254; darn=chrony.tuxfamily.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=o0+znk3Z1O76prKcZGD9Xu5uGoIuKHhtyX8uAx5AYPc=; b=Wo9ii0aBHp8QjtMI0QhaoiC61LgfidiffsRevzBSlU+WQJjNkBNv+V6OGeydSLm3+o AT0ggkv7yIhX9tXE4EAN0ASAG03aLKNUjw69AVKSvzVFecvxg+M9M7LjVdCv5+Cf+yUn chg9yNdYKy76uTFHmRPGgbqqD4vtw+9C4vZUCyFeHq48smreKPYLYbGPPcNzuRCTAY+b guPIBqSC0iJ5ERAkp0sm2sgncCwkZGm8Rk7+X0wcuZG5Hnvl6FDCHXLKt0XJnT0pTE3G CgZhBlKYOVKWyls2lYNoS4Gvy3Fg3TwIfTaLmyowmavPtTnm5KyJygcdREphzoO56LRh oMGg==
So uh Rob gave a good explanation of how chrony works, but honestly:
this smells like an "XY problem" to me. What are you attempting to do,
actually, by getting `chronyc sources`? In other words, what
information do you *really* need?
If you just want to know how some sources are doing without knowing
how the system's chronyd is doing with it, you can just run your own
copy of chronyd with `chronyd -U -x`. This way it won't try to do
anything to the system clock, but it still keeps track of its own
concept of the current time by communicating with the servers you
have.
If you want to know what the system's chronyd is doing, then you don't
need root permissions either: you can test it by just running `chronyc
sources` from an ordinary non-root user outside of the container. This
is because chronyc can connect to chronyd in two ways, either the Unix
socket file (which allows for making changes and, on the default
permission setting, requires root [but perhaps you can chmod it]) or
the localhost UDP control port (defaults to 323). You can simply set
your container up to have access to either the file or the port.
Sincerely,
Mingye Wang (Artoria2e5)
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.