[Bug 1915936] [NEW] systemd-coredump user is create by something other than its derived systemd packages

Eric Desrochers 1915936 at bugs.launchpad.net
Wed Feb 17 15:39:46 UTC 2021


Public bug reported:

systemd-coredump binary package is instructed as follows:

#debian/systemd-coredump.postinst:
adduser --quiet --system --group --no-create-home --home /run/systemd \
--gecos "systemd Core Dumper" systemd-coredump

But one doesn't need this package to be installed to have the systemd-
coredump user created. This was taken from a focal 20.04.2 fresh
installation (Right after a vanilla installation):

# cat /etc/passwd:
...
systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
...

# dpkg -l | grep -i systemd
ii  dbus-user-session                    1.12.16-2ubuntu2.1                amd64        simple interprocess messaging system (systemd --user integration)
ii  libnss-systemd:amd64                 245.4-4ubuntu3.4                  amd64        nss module providing dynamic user and group name resolution
ii  libpam-systemd:amd64                 245.4-4ubuntu3.4                  amd64        system and service manager - PAM module
ii  libsystemd0:amd64                    245.4-4ubuntu3.4                  amd64        systemd utility library
ii  networkd-dispatcher                  2.0.1-1                           all          Dispatcher service for systemd-networkd connection status changes
ii  python3-systemd                      234-3build2                       amd64        Python 3 bindings for systemd
ii  systemd                              245.4-4ubuntu3.4                  amd64        system and service manager
ii  systemd-sysv                         245.4-4ubuntu3.4                  amd64        system and service manager - SysV links
ii  systemd-timesyncd                    245.4-4ubuntu3.4                  amd64        minimalistic service to synchronize local time with NTP servers

# /var/log/syslog
syslog:Feb 17 15:31:56 test systemd-sysusers[402]: Creating group systemd-coredump with gid 999.
syslog:Feb 17 15:31:56 test systemd-sysusers[402]: Creating user systemd-coredump (systemd Core Dumper) with uid 999 and gid 999.


Additionnally, you may notice the home directory during the user creation at installation sets it to "/" as opposed to "/run/systemd" directive in the appropriate postint. It is contradictory.

* Why systemd-coredump user is created at installation time and/or without 'systemd-coredump' package installed ?
* Why this early creation set the home directory to "/" ?

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  systemd-coredump binary package is instructed as follows:
  
- #debian/systemd-coredump.postinst:    
+ #debian/systemd-coredump.postinst:
  adduser --quiet --system --group --no-create-home --home /run/systemd \
  --gecos "systemd Core Dumper" systemd-coredump
  
  But one doesn't need this package to be installed to have the systemd-
  coredump user created. This was taken from a focal 20.04.2 fresh
  installation (Right after a vanilla installation):
  
  # cat /etc/passwd:
  ...
  systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
  ...
  
  # dpkg -l | grep -i systemd
  ii  dbus-user-session                    1.12.16-2ubuntu2.1                amd64        simple interprocess messaging system (systemd --user integration)
  ii  libnss-systemd:amd64                 245.4-4ubuntu3.4                  amd64        nss module providing dynamic user and group name resolution
  ii  libpam-systemd:amd64                 245.4-4ubuntu3.4                  amd64        system and service manager - PAM module
  ii  libsystemd0:amd64                    245.4-4ubuntu3.4                  amd64        systemd utility library
  ii  networkd-dispatcher                  2.0.1-1                           all          Dispatcher service for systemd-networkd connection status changes
  ii  python3-systemd                      234-3build2                       amd64        Python 3 bindings for systemd
  ii  systemd                              245.4-4ubuntu3.4                  amd64        system and service manager
  ii  systemd-sysv                         245.4-4ubuntu3.4                  amd64        system and service manager - SysV links
  ii  systemd-timesyncd                    245.4-4ubuntu3.4                  amd64        minimalistic service to synchronize local time with NTP servers
  
- 
- # /var/log/installer/installer-journal.txt
- Feb 17 15:27:19 ubuntu-server systemd-sysusers[844]: Creating group systemd-coredump with gid 998.
- Feb 17 15:27:19 ubuntu-server systemd-sysusers[844]: Creating user systemd-coredump (systemd Core Dumper) with uid 998 and gid 998.
+ # /var/log/syslog
+ syslog:Feb 17 15:31:56 test systemd-sysusers[402]: Creating group systemd-coredump with gid 999.
+ syslog:Feb 17 15:31:56 test systemd-sysusers[402]: Creating user systemd-coredump (systemd Core Dumper) with uid 999 and gid 999.
  
  
  Additionnally, you may notice the home directory during the user creation at installation sets it to "/" as opposed to "/run/systemd" directive in the appropriate postint. It is contradictory.
  
- 
  * Why systemd-coredump user is created at installation time and/or without 'systemd-coredump' package installed ?
  * Why this early creation set the home directory to "/" ?

** Summary changed:

- systemd-coredump user is create by something other than a derived systemd packages
+ systemd-coredump user is create by something other than its derived systemd packages

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1915936

Title:
  systemd-coredump user is create by something other than its derived
  systemd packages

Status in systemd package in Ubuntu:
  New

Bug description:
  systemd-coredump binary package is instructed as follows:

  #debian/systemd-coredump.postinst:
  adduser --quiet --system --group --no-create-home --home /run/systemd \
  --gecos "systemd Core Dumper" systemd-coredump

  But one doesn't need this package to be installed to have the systemd-
  coredump user created. This was taken from a focal 20.04.2 fresh
  installation (Right after a vanilla installation):

  # cat /etc/passwd:
  ...
  systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
  ...

  # dpkg -l | grep -i systemd
  ii  dbus-user-session                    1.12.16-2ubuntu2.1                amd64        simple interprocess messaging system (systemd --user integration)
  ii  libnss-systemd:amd64                 245.4-4ubuntu3.4                  amd64        nss module providing dynamic user and group name resolution
  ii  libpam-systemd:amd64                 245.4-4ubuntu3.4                  amd64        system and service manager - PAM module
  ii  libsystemd0:amd64                    245.4-4ubuntu3.4                  amd64        systemd utility library
  ii  networkd-dispatcher                  2.0.1-1                           all          Dispatcher service for systemd-networkd connection status changes
  ii  python3-systemd                      234-3build2                       amd64        Python 3 bindings for systemd
  ii  systemd                              245.4-4ubuntu3.4                  amd64        system and service manager
  ii  systemd-sysv                         245.4-4ubuntu3.4                  amd64        system and service manager - SysV links
  ii  systemd-timesyncd                    245.4-4ubuntu3.4                  amd64        minimalistic service to synchronize local time with NTP servers

  # /var/log/syslog
  syslog:Feb 17 15:31:56 test systemd-sysusers[402]: Creating group systemd-coredump with gid 999.
  syslog:Feb 17 15:31:56 test systemd-sysusers[402]: Creating user systemd-coredump (systemd Core Dumper) with uid 999 and gid 999.

  
  Additionnally, you may notice the home directory during the user creation at installation sets it to "/" as opposed to "/run/systemd" directive in the appropriate postint. It is contradictory.

  * Why systemd-coredump user is created at installation time and/or without 'systemd-coredump' package installed ?
  * Why this early creation set the home directory to "/" ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1915936/+subscriptions



More information about the foundations-bugs mailing list