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

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

    <bug>
          <bug_id>46776</bug_id>
          
          <creation_ts>2023-07-05 20:08:21 +0300</creation_ts>
          <short_desc>nobody user uid=gid=65534</short_desc>
          <delta_ts>2024-02-29 17:15:13 +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>setup</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=48445</see_also>
          <bug_file_loc>https://systemd.io/UIDS-GIDS</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>47357</dependson>
    
    <dependson>49266</dependson>
          <blocked>46625</blocked>
    
    <blocked>46738</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Shabalin">shaba</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>aris</cc>
    
    <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>shaba</cc>
    
    <cc>vt</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>229036</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2023-07-05 20:08:21 +0300</bug_when>
    <thetext>Предлагаю, в соответствии с https://systemd.io/UIDS-GIDS , перейти на uid=gid=65534 для пользователя nobody.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229064</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2023-07-06 12:06:56 +0300</bug_when>
    <thetext>Свиду даже подводных камней не придумывается.
Разве что, какие-нибудь useradd будут пытаться больший UID использовать.
Зато, nobody перестанет считаться системным пользователем.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229187</commentid>
    <comment_count>2</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2023-07-07 14:29:38 +0300</bug_when>
    <thetext>(In reply to Sergey V Turchin from comment #1)
&gt; Зато, nobody перестанет считаться системным пользователем.

DM, который апстрим systemd считает самым правильным в мире, решил проблему по-пролетарски:
&gt; Exclude
&gt; 
&gt; Synopsis:
&gt;     Exclude=bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noaccess,postgres,pvm,rpm,nfsnobody,pcap
&gt; Set to a list of users to always exclude in the Face Browser.

https://gitlab.gnome.org/GNOME/gdm/-/blob/main/docs/C/index.docbook</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229188</commentid>
    <comment_count>3</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2023-07-07 14:34:56 +0300</bug_when>
    <thetext>(In reply to Sergey V Turchin from comment #1)
&gt; Разве что, какие-нибудь useradd будут пытаться больший UID использовать.

Прямо сейчас на сизифе:
[root@horse ~]# getent passwd nobody
nobody:x:65534:65534:Nobody:/var/nobody:/dev/null
[root@horse ~]# useradd -m dodick
[root@horse ~]# getent passwd dodick
dodick:x:503:503::/home/dodick:/bin/bash
[root@horse ~]# ls -lnd /home/dodick
drwx------ 8 503 503 4096 Jul  7 14:26 /home/dodick
[root@horse ~]# rpm -q --qf=&apos;%{NEVR}\n&apos; $(rpm -qf $(command -v useradd))
shadow-utils-1:4.13-alt6

Вообще, думаю, стоит ожидать, что популярные программы эти грабли уже собрали (т. е. вспоминать про экзотические). :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229190</commentid>
    <comment_count>4</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2023-07-07 14:40:25 +0300</bug_when>
    <thetext>(Ответ для Arseny Maslennikov на комментарий #2)
&gt; (In reply to Sergey V Turchin from comment #1)
&gt; &gt; Зато, nobody перестанет считаться системным пользователем.
&gt; 
&gt; DM, который апстрим systemd считает самым правильным в мире, решил проблему
&gt; по-пролетарски:
&gt; &gt; Exclude
&gt; &gt; 
&gt; &gt; Synopsis:
&gt; &gt;     Exclude=bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noaccess,postgres,pvm,rpm,nfsnobody,pcap
&gt; &gt; Set to a list of users to always exclude in the Face Browser.
&gt; 
&gt; https://gitlab.gnome.org/GNOME/gdm/-/blob/main/docs/C/index.docbook

&quot;By default, the value is empty&quot;. И у нас empty.
Но никакие nobody c любым номером в &quot;Face Browser&apos;е&quot; показаны не будут.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229196</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2023-07-07 15:51:15 +0300</bug_when>
    <thetext>Если systemd использует не то значение, которое записано в /proc/sys/fs/overflowuid, а то, которое в /etc/passwd, то при смене uid у пользователей systemd могут возникнуть проблемы.
Но поскольку значение /proc/sys/fs/overflowuid никто, по-видимому, менять не собирается, давайте поменяем значение в passwd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242386</commentid>
    <comment_count>6</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2024-02-29 17:15:13 +0300</bug_when>
    <thetext>* Tue Nov 07 2023 Arseny Maslennikov &lt;arseny@altlinux.org&gt; 2.2.20-alt1
- Install the default overflowuid defined by Linux (incl. our kernels) as the
  nobody user and group. The user and group 99 are installed as _nobody99.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>