LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-13-2024, 08:43 AM   #1
random_guy
Member
 
Registered: Sep 2006
Location: TX,USA
Distribution: Slackware-15.0
Posts: 30

Rep: Reputation: 15
File /etc/machine-id not found. Pros/Cons ?


Hi all,

I came across something that I haven't ever needed, it's a file named: /etc/machine-id.
I see why it might be needed. So a couple of questions:
Firstly, I'm curious as to why it's not created on Slackware in /etc/machine-id during install (I like that this is the default, actually). And, secondly, what are the pros/cons of creating it manually, if needed?

I've used Slackware (currently 15.0) for many years and I'm pretty sure it's never been part of the install but I could be wrong, as I've never had a reason to use machine-id or go looking for it

Any comments, advice would be greatly appreciated.

TIA
 
Old 03-13-2024, 09:23 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
https://www.freedesktop.org/software...achine-id.html
 
1 members found this post helpful.
Old 03-13-2024, 09:59 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Thou shalt not mention systemd, or anything that is appertaining to it, in this forum.
-- St Brian's Epistle to the Slackers, v32
 
3 members found this post helpful.
Old 03-13-2024, 10:17 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,785

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
/etc/rc.d/rc.messagebus runs dbus-uuidgen --ensure which ensures that /var/lib/dbus/machine-id exists and has the uuid in it.

You can make a link to /etc/machine-id:
Code:
ln -s /var/lib/dbus/machine-id /etc/machine-id
A program needed it but I don't remember which one.
 
5 members found this post helpful.
Old 03-14-2024, 07:59 AM   #5
random_guy
Member
 
Registered: Sep 2006
Location: TX,USA
Distribution: Slackware-15.0
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks everyone for responding! @Petri you are correct the file does indeed exist on my machine. Thank you that info. @BrianL lol I understand, point taken.

I was curious about this text in the doc referenced by Didier in particular - It "must" not be used "directly". Instead ...


"This ID uniquely identifies the host. It should be considered "confidential", and must not be exposed in untrusted environments, in particular on the network. If a stable unique identifier that is tied to the machine is needed for some application, the machine ID or any part of it must not be used directly. Instead the machine ID should be hashed with a cryptographic, keyed hash function, using a fixed, application-specific key. That way the ID will be properly unique, and derived in a constant way from the machine ID but there will be no way to retrieve the original machine ID from the application-specific one. "


Is *direct* application access to machine-id enforced by the system in anyway i.e. an application is only allowed access to the machine-id through sd_id128_get_machine* library calls or is it up to the application to do so but not required?
 
Old 03-21-2024, 06:56 PM   #6
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Rep: Reputation: 147Reputation: 147
Angry

It's a way 'they' want to track you. Hopefully there's a way to randomize it on boot or whenever you want, or just put all zeroes or something.

Last edited by dchmelik; 03-22-2024 at 08:22 PM.
 
Old 03-21-2024, 08:12 PM   #7
netcrawl
Member
 
Registered: Jan 2004
Location: British Columbia
Distribution: Slackware64-current, aarch64
Posts: 220

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by dchmelik View Post
It's a way 'they' want to track you.
Yeah, Bernie says a lot of stuff. https://pbs.twimg.com/media/DtzwW0DWwAAQGPq.jpg
 
Old 03-22-2024, 12:30 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Originally Posted by Petri Kaukasoina View Post
A program needed it but I don't remember which one.
Microsoft Edge recently started to require it, and now maybe
Vivaldi
 
Old 03-22-2024, 11:33 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
Microsoft Edge recently started to require it, and now maybe
Vivaldi
Who's using Microsoft Edge on Slackware? Sacrilege and blasphemy! "Bob" forgive them, they know not what they do.
 
1 members found this post helpful.
Old 03-22-2024, 12:57 PM   #10
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 364

Rep: Reputation: 171Reputation: 171
Could it be Chrome, as installed by slackware64-15.0/extra/google-chrome/google-chrome.SlackBuild? Chrome complains
Quote:
Mar 22 17:53:59 newjersey chrome[11102]: [11102:11102:0322/175359.891900:ERROR:browser_dm_token_storage_linux.cc(100)] Error: /etc/machine-id contains 0 characters (32 were expected).
but runs anyway.
 
Old 03-22-2024, 06:53 PM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Originally Posted by brianL View Post
Who's using Microsoft Edge on Slackware? Sacrilege and blasphemy! "Bob" forgive them, they know not what they do.
Microsoft Teams is a pervasive business platform, best accessed using Microsoft Edge.
 
Old 03-23-2024, 07:06 AM   #12
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Originally Posted by metaed View Post
Could it be Chrome, as installed by slackware64-15.0/extra/google-chrome/google-chrome.SlackBuild? Chrome complains

but runs anyway.
My guess is the WebKit engine.
 
Old 03-24-2024, 04:00 PM   #13
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
I have been experimenting with just some experimenting with rc.local_shutdown just replacing the content of /var/lib/dbus/machine-id via

uuidgen | tr -d '-' > /var/lib/dbus/machine-id

So far this does not seem to cause an issue. This might be a 'privacy enhanced' option for folks worried about it. It may be useful to have a globally unique machine identifier that isnt tied to any current network address for some applications for the life a user session.

It might be useful for that to persist beyond that but I think that should be clear choice presented user not a 'surprise' So I don't feel any remorse breaking the contract of the spec in this way. If that results in a broken application - well its probably not an application I want to be using.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pi as a file/media server, pros and cons.... Basslord1124 Linux - Embedded & Single-board computer 29 06-10-2020 03:54 PM
Pros and Cons of programmatically modifying configuration file ravindrah Linux - Security 1 03-09-2016 12:14 PM
Pros and Cons of Vitural Hosting vs Separate machine -- need opinion fhleung Linux - Newbie 18 02-12-2011 12:32 PM
Could somebody explain the pros and cons of some of the most used file systems? baldurpet Linux - General 20 12-11-2008 08:39 PM
What are the Pros versus Cons with File Integrity Detection Systems 2backitup Linux - Security 7 03-02-2006 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration