brent saner via plug on 26 Jun 2023 11:51:24 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Linux equivalent of a Windows SID |
On Mon, Jun 26, 2023 at 2:02 PM Rich Mingin (PLUG) via plug
<plug@lists.phillylinux.org> wrote:
>
> Systemd does something similar. I don’t know of anything leveraging systemd’s unique machine identifier aside from systemd itself.
>
Systemd puts this info in /etc/machine-id
It is visible in the output of hostnamectl, and presumably there is a
DBUS API to obtain it.
I don't know what triggers regenerating it. Obviously if you clone a
machine you'd need to do something to tell systemd to create a new one
unless it can detect that. Systemd has some concepts of ephemeral
hosts and so on and some container-oriented capabilities. It would
definitely be something I'd look into if this was something I needed.
It is also worth looking at your virtualization/container environment
if you're using them, as those might also provide some reliable way of
generating persistent unique IDs for instances of things. Certainly
kubernetes offers stuff like this, especially for things like
statefulsets that can dynamically scale instances while providing them
with consistent storage.
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug