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

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

    <bug>
          <bug_id>36652</bug_id>
          
          <creation_ts>2019-04-21 12:03:20 +0300</creation_ts>
          <short_desc>nmbd doesn&apos;t start if /var/run is link to /run</short_desc>
          <delta_ts>2021-05-05 23:40:24 +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>samba</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://bugs.archlinux.org/task/62262</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>relnote</keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>iv</cc>
    
    <cc>lav</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>181076</commentid>
    <comment_count>0</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2019-04-21 12:03:20 +0300</bug_when>
    <thetext># rpm -qf /etc/init.d/nmb 
samba-4.10.2-alt1.x86_64

# /etc/init.d/nmb start
Starting Samba NetBIOS Name Server service: [ DONE ]

# tail -f /var/log/messages 
....
2019-04-21T11:02:02.555745+02:00 lks nmbd[32375]:   started asyncdns process 32377
2019-04-21T11:02:02.555854+02:00 lks nmbd[32375]: [2019/04/21 11:02:02.555819,  0] ../../lib/util/become_daemon.c:122(exit_daemon)
2019-04-21T11:02:02.555891+02:00 lks nmbd[32375]:   exit_daemon: daemon failed to start: Failed to create directory for pid files, check &apos;pid directory&apos;, error code 17
2019-04-21T11:02:02.559756+02:00 lks nmb: nmbd startup succeeded

# ll /var/run
lrwxrwxrwx 1 root root 4 Jan 21  2018 /var/run -&gt; /run/

See https://bugs.archlinux.org/task/62262</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196196</commentid>
    <comment_count>1</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2021-02-11 22:57:13 +0300</bug_when>
    <thetext>ping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196197</commentid>
    <comment_count>2</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2021-02-11 23:27:28 +0300</bug_when>
    <thetext>I don&apos;t know how to reproduce it.

clw0 ~ # service nmb status
inactive

clw0 ~ # ls /var/log/samba/
old

clw0 ~ # service nmb start

clw0 ~ # ls /var/log/samba/
log.nmbd  old

clw0 ~ # tail /var/log/samba/log.nmbd 
[2021/02/11 23:24:37.413691,  0] ../../source3/nmbd/nmbd.c:960(main)
  nmbd version 4.12.11 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2020
[2021/02/11 23:24:37.433781,  0] ../../lib/util/become_daemon.c:136(daemon_ready)
  daemon_ready: daemon &apos;nmbd&apos; finished starting up and ready to serve connections

clw0 ~ # ps auxf | grep nmb
root       81794  0.0  0.0   4404   708 pts/1    S+   23:24   0:00                      \_ grep --color=auto nmb
root       81788  0.0  0.5  69352  5904 ?        S    23:24   0:00 /usr/sbin/nmbd --no-process-group

clw0 ~ # rpm -q samba
samba-4.12.11-alt1.x86_64

clw0 ~ # cat /etc/samba/smb.conf
[global]
        security = ads
        realm = DOMAIN.ALT
        workgroup = DOMAIN
        netbios name = CLW0
        template shell = /bin/bash
        kerberos method = system keytab
        wins support = no

        idmap config * : range = 10000-20000000
        idmap config * : backend = tdb
;       encrypt passwords = true
;       dns proxy = no
;       socket options = TCP_NODELAY
;       domain master = no
;       local master = no
;       preferred master = no
;       os level = 0
;       domain logons = no
;       load printers = no
;       show add printer wizard = no
;       printcap name = /dev/null
;       disable spoolss = yes
[homes]
        comment = Home Directories
        browseable = no
        writable = yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196198</commentid>
    <comment_count>3</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2021-02-11 23:28:39 +0300</bug_when>
    <thetext>Yes, I have same /var/run:

clw0 ~ # ll /var/run
lrwxrwxrwx 1 root root 6 дек 27  2019 /var/run -&gt; ../run/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196199</commentid>
    <comment_count>4</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2021-02-11 23:32:35 +0300</bug_when>
    <thetext>(Ответ для Evgeny Sinelnikov на комментарий #3)
&gt; Yes, I have same /var/run:
&gt; 
&gt; clw0 ~ # ll /var/run
&gt; lrwxrwxrwx 1 root root 6 дек 27  2019 /var/run -&gt; ../run/

Sorry, try to set /var/run as relative link. It is default in my installation stack based on updated ALT Workstation 9.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196200</commentid>
    <comment_count>5</comment_count>
    <who name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</who>
    <bug_when>2021-02-11 23:41:54 +0300</bug_when>
    <thetext>(In reply to Evgeny Sinelnikov from comment #4)
&gt; (Ответ для Evgeny Sinelnikov на комментарий #3)
&gt; &gt; Yes, I have same /var/run:
&gt; &gt; 
&gt; &gt; clw0 ~ # ll /var/run
&gt; &gt; lrwxrwxrwx 1 root root 6 дек 27  2019 /var/run -&gt; ../run/
&gt; 
&gt; Sorry, try to set /var/run as relative link. It is default in my
&gt; installation stack based on updated ALT Workstation 9.1.

Maybe provide a workaround for non-ALT Workstation 9.1 systems? I&apos;m using system based on my own livecd based on Sisyphus :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198362</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-05-05 23:40:24 +0300</bug_when>
    <thetext>samba-4.14.4-alt1 -&gt; sisyphus:

 Fri Apr 30 2021 Evgeny Sinelnikov &lt;sin@altlinux&gt; 4.14.4-alt1
 - Fix buffer overrun in sids_to_unixids() (Fixes: CVE-2021-20254)
 - Final migration to /run directory (Closes: 35891, 36652, 39992)
 - Avoid build problems on e2k</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>