File /etc/machine-id Security and Privancy Concern

Message
Author
User avatar
BitJam
Developer
Posts: 2303
Joined: Sat Aug 22, 2009 11:36 pm

Re: File /etc/machine-id Security and Privancy Concern

#11 Post by BitJam »

There have been a lot of problems with the Debian init.d scripts. I would not be surprised if you found another one.
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

User avatar
dphn
Posts: 126
Joined: Sun Nov 25, 2018 6:26 am

Re: File /etc/machine-id Security and Privancy Concern

#12 Post by dphn »

on my MX System dbus-uuidgen is working, so the file /var/lib/dbus/machine-id created at first boot. /etc/machine-id not exists in regular MX-ISOs. This file not created at first boot; /etc/machine-id is a systemd thing only. For compatibility to systemd it's better there is a symlink to /var/lib/dbus/machine-id for apps like google-chrome.
for those with an eye for the finer details...

User avatar
figueroa
Posts: 1097
Joined: Thu Dec 20, 2018 11:20 pm

Re: File /etc/machine-id Security and Privancy Concern

#13 Post by figueroa »

dphn wrote: Thu Mar 14, 2019 6:28 am on my MX System dbus-uuidgen is working, so the file /var/lib/dbus/machine-id created at first boot. /etc/machine-id not exists in regular MX-ISOs. This file not created at first boot; /etc/machine-id is a systemd thing only. For compatibility to systemd it's better there is a symlink to /var/lib/dbus/machine-id for apps like google-chrome.
On my system where I am testing this. dbus-uuidgen works. There are invocations to use it to create /var/lib/dbus/machine-id in the file /etc/init.d/dbus. It doesn't, however, create the file when it is missing. The dbus init file is 2813 bytes dated Oct 1,2017.

If I stop dbus, then kill all other dbus-daemon and dbus-launch then manually invoke /etc/init.d/dbus start, the file /var/lib/dbus/machine-id is created. /etc/machine-id is not created. (stopping dbus and killing dbus related processes kills the desktop)

My conclusion is that dbus init file is not being invoked on startup. Something else must, therefore, be starting dbus damons during boot before the dbus init file is invoked. (If dbus is running, the dbus init script won't run.)
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

User avatar
Adrian
Developer
Posts: 8876
Joined: Wed Jul 12, 2006 1:42 am

Re: File /etc/machine-id Security and Privancy Concern

#14 Post by Adrian »

/etc/machine-id is created by systemd, so for example if it doesn't exist and update systemd that files gets created that's how it can get out of sync with the other file. You could symlink it to the other file if a program expect the /etc/machine-id file.

User avatar
crazysquirrel
Posts: 103
Joined: Thu Mar 14, 2019 5:59 pm

Re: File /etc/machine-id Security and Privancy Concern

#15 Post by crazysquirrel »

Why does Linux even bother to create those ID's?
I see no use for them.

Personally I do not want UUID's. fingerprints, etc available to any browser or software that can send the information to the internet.

(hate UUID's anyway. too much to type lol)
Mx 19.2 XFCE, dual boot with XP Media Center Edition 2005, core i5, 8gb ram, WD 500GB NvMe drive (4 lanes) + other storage drives.

User avatar
Adrian
Developer
Posts: 8876
Joined: Wed Jul 12, 2006 1:42 am

Re: File /etc/machine-id Security and Privancy Concern

#16 Post by Adrian »

If for example you have a number of virtual machines you might need to be able to distinguish them.

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: File /etc/machine-id Security and Privancy Concern

#17 Post by skidoo »

{rolleyes} c'mon, that's a pretty lame example "why".

When machine-id initially showed up in ubuntu//debian (hint: the PERIOD at the end of first sentence in my earlier post is a hyperlink anchor)
my first guess what that it was intended to facilitate accurate popcon voting. Nope, I couldn't find anywhere in the popcon code referring to machine-id.
Debian (package) Popularity Contest
Ubuntu (package) Popularity Contest

User avatar
crazysquirrel
Posts: 103
Joined: Thu Mar 14, 2019 5:59 pm

Re: File /etc/machine-id Security and Privancy Concern

#18 Post by crazysquirrel »

Adrian wrote: Thu Mar 14, 2019 7:31 pm If for example you have a number of virtual machines you might need to be able to distinguish them.
I have had several VM's and never needed machine id's. I just labeled them with what they were. XP for an XM vm, Mint for a Mint one, etc.

I suppose machine ID's are the same as hardware id's but more vague?
Mx 19.2 XFCE, dual boot with XP Media Center Edition 2005, core i5, 8gb ram, WD 500GB NvMe drive (4 lanes) + other storage drives.

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: File /etc/machine-id Security and Privancy Concern

#19 Post by skidoo »

I just meant that assigning UUIDs (32character alphanumeric names)
33f142deb73233f0a8e100c56c807bb4
and managing a lookup table to keep track of which is which... would be lame (impractical) compared to just referring to 'em by memorable hostnames, f'rinstance

User avatar
Adrian
Developer
Posts: 8876
Joined: Wed Jul 12, 2006 1:42 am

Re: File /etc/machine-id Security and Privancy Concern

#20 Post by Adrian »

crazysquirrel wrote: Thu Mar 14, 2019 8:03 pm
Adrian wrote: Thu Mar 14, 2019 7:31 pm If for example you have a number of virtual machines you might need to be able to distinguish them.
I have had several VM's and never needed machine id's. I just labeled them with what they were. XP for an XM vm, Mint for a Mint one, etc.

I suppose machine ID's are the same as hardware id's but more vague?
By multiple VM instances I meant something like hundreds or thousands, not 2-3 on your machine. Not sure about history other that it was introduced by D-Bus package and I see post about it at least since 2006 (if I'm to trust google on that)
https://dbus.freedesktop.org/doc/dbus-uuidgen.1.html
The important properties of the machine UUID are that 1) it remains unchanged until the next reboot and 2) it is different for any two running instances of the OS kernel. That is, if two processes see the same UUID, they should also see the same shared memory, UNIX domain sockets, local X displays, localhost.localdomain resolution, process IDs, and so forth.

Post Reply

Return to “Software / Configuration”