Skip to content

group, passwd: fix messagebus user/group#36

Merged
t-lo merged 1 commit intoflatcar-masterfrom
t-lo/fix-messagebus-user-group
Jul 23, 2025
Merged

group, passwd: fix messagebus user/group#36
t-lo merged 1 commit intoflatcar-masterfrom
t-lo/fix-messagebus-user-group

Conversation

@t-lo
Copy link
Copy Markdown
Member

@t-lo t-lo commented Jul 22, 2025

In the scripts repo's portage-stable/acct-(user|group)/. messagebus has uid 101 and gid 101.

In our baselayout's /etc/passwd and /etc/group messagebus' UID / GID are 201/201.
Consequently, information about UID 101 / GID 101 is missing from live Flatcar systems and items with this ownership are displayed as being owned by "UNKNOWN".

This change updates baselayout to also use 101.

Testing done

Tested in conjunction with flatcar/scripts#3132

Before the change

core@localhost ~ $ ls -la /usr/libexec/dbus-daemon-launch-helper
---s--x---. 1 root 101 65096 Jun 20 21:20 /usr/libexec/dbus-daemon-launch-helper
core@localhost ~ $ stat /usr/libexec/dbus-daemon-launch-helper
  File: /usr/libexec/dbus-daemon-launch-helper
  Size: 65096           Blocks: 128        IO Block: 4096   regular file
Device: 0,58    Inode: 30262       Links: 1
Access: (4110/---s--x---)  Uid: (    0/    root)   Gid: (  101/ UNKNOWN)
[...]

After the change

core@localhost ~ $ ls -la /usr/libexec/dbus-daemon-launch-helper
---s--x---. 1 root messagebus 65096 Jul 15 02:20 /usr/libexec/dbus-daemon-launch-helper
core@localhost ~ # stat /usr/libexec/dbus-daemon-launch-helper
  File: /usr/libexec/dbus-daemon-launch-helper
  Size: 65096           Blocks: 128        IO Block: 4096   regular file
Device: 0,58    Inode: 30298       Links: 1
Access: (4110/---s--x---)  Uid: (    0/    root)   Gid: (  101/messagebus)

in portage-stable/acct-(user|group)/ messagebus has uid 101 and gid 101.
In our baselayout's /etc/passwd and /etc/group it's 201/201.
This change updates baselayout to also use 101.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
t-lo added a commit to flatcar/scripts that referenced this pull request Jul 22, 2025
This change ingests a new baselayout version that fixes a UID / GID
mis-alignment with the "messagebus" user / group.

See flatcar/baselayout#36.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
@t-lo t-lo requested review from a team and jepio July 23, 2025 10:12
t-lo added a commit to flatcar/scripts that referenced this pull request Jul 23, 2025
This change ingests a new baselayout version that fixes a UID / GID
mis-alignment with the "messagebus" user / group.

See flatcar/baselayout#36.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
t-lo added a commit to flatcar/scripts that referenced this pull request Jul 23, 2025
This change ingests a new baselayout version that fixes a UID / GID
mis-alignment with the "messagebus" user / group.

See flatcar/baselayout#36.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
@t-lo t-lo merged commit 79d3a0c into flatcar-master Jul 23, 2025
1 check passed
@t-lo t-lo deleted the t-lo/fix-messagebus-user-group branch July 23, 2025 12:06
t-lo added a commit to flatcar/scripts that referenced this pull request Jul 23, 2025
This change ingests a new baselayout version that fixes a UID / GID
mis-alignment with the "messagebus" user / group.

See flatcar/baselayout#36.

Co-authored-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
t-lo added a commit to flatcar/scripts that referenced this pull request Jul 23, 2025
This change ingests a new baselayout version that fixes a UID / GID
mis-alignment with the "messagebus" user / group.

See flatcar/baselayout#36.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
Co-authored-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants