<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>60114</bug_id>
          
          <creation_ts>2026-08-07 08:17:15 +0300</creation_ts>
          <short_desc>Не создан служебный пользователь</short_desc>
          <delta_ts>2026-08-10 19:38:07 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>systemd-journal-remote</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Shevtsov">shevtsov.anton</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>arseny</cc>
    
    <cc>glinkinvd</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>292393</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Shevtsov">shevtsov.anton</who>
    <bug_when>2026-08-07 08:17:15 +0300</bug_when>
    <thetext>Служба systemd-journal-gatewayd работает с под systemd-journal-gateway, который числится в группе systemd-journal. Юниты для этого готовы, но самого пользователя не создается при установке. Скорее всего пропустили.

[root@dc ~]# grep ^User /usr/lib/systemd/system/systemd-journal-gatewayd.service
User=systemd-journal-gateway

[root@dc ~]# id systemd-journal-gateway
id: «systemd-journal-gateway»: такого пользователя нет

[root@dc ~]# rpm -qf /usr/lib/systemd/system/systemd-journal-gatewayd.service
systemd-journal-remote-257.9-alt1.x86_64

[root@dc ~]# useradd --system --no-create-home --user-group systemd-journal-gateway
[root@dc ~]# usermod -aG systemd-journal systemd-journal-gateway</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292470</commentid>
    <comment_count>1</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2026-08-10 13:16:48 +0300</bug_when>
    <thetext>Версия пакета: systemd-journal-remote-260.4-alt1

```
%pre journal-remote
groupadd -r -f -g 90 systemd-journal-remote ||:
useradd -g systemd-journal-remote -c &apos;Journal Remote&apos; \
    -d %_logdir/journal/remote -s /dev/null -r -l -u 90 systemd-journal-remote &gt;/dev/null 2&gt;&amp;1 ||:
```

Подтверждаю проблему. Во время установки создаётся только systemd-journal-remote.
Запуск служб на данный момент осуществляется с помощью DynamicUser=yes, что не заменяет полноценного системного пользователя.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292487</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2026-08-10 19:38:07 +0300</bug_when>
    <thetext>Пользователь systemd-journal-gateway не создаётся намеренно: systemd-journal-gatewayd.service использует DynamicUser=yes, поэтому systemd сам выделяет UID из динамического диапазона на время работы сервиса. То же и для systemd-journal-upload.service.

Сервис stateless: он ничего не пишет на файловую систему, а доступ к журналу получает через SupplementaryGroups=systemd-journal. Постоянный UID ему не нужен — владеть на диске нечем.

Пока сервис запущен, имя резолвится через libnss-systemd:

  # systemctl start systemd-journal-gatewayd
  # getent passwd systemd-journal-gateway

Отсутствие записи в /etc/passwd при остановленном сервисе — ожидаемое поведение.

Статический пользователь есть только у systemd-journal-remote (uid/gid 90, создаётся в %pre): у него DynamicUser не выставлен, он пишет в /var/log/journal/remote, и rpm должен выставить владельца каталога при распаковке.

Апстрим уже проходил этот путь и откатил такое изменение — коммит e4d216f2dc, Revert &quot;sysusers.d: create the user for systemd-journal-upload.service&quot;: «systemd-journal-upload.service uses User= together with DynamicUser=yes, so the user doesn&apos;t have to (and shouldn&apos;t) exist before starting the service».</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>