<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Does anyone has a clue why I can't connect from Ubuntu to my
      samba server with SMB2 in a way that ownerships and permissions
      are preserved ?</p>
    <p>The samba team says this is not a bug.</p>
    <p>see below<br>
    </p>
    <div class="moz-forward-container"><br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Subject:
            </th>
            <td>Re: why i want a bugzilla account</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Date: </th>
            <td>Fri, 19 Jan 2018 14:51:09 +0100</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">From: </th>
            <td>Björn Jacke <a class="moz-txt-link-rfc2396E" href="mailto:bjacke@samba.org"><bjacke@samba.org></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">To: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:lauritsen@picoquant.com">lauritsen@picoquant.com</a>, Kristian Lauritsen
              <a class="moz-txt-link-rfc2396E" href="mailto:lauritsen@picoquant.com"><lauritsen@picoquant.com></a>,
              <a class="moz-txt-link-abbreviated" href="mailto:bugzilla-maintenance@samba.org">bugzilla-maintenance@samba.org</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>you might ask for guidance on the samba mailing list. this is not a bug.

On January 19, 2018 11:53:18 AM GMT+01:00, Kristian Lauritsen <a class="moz-txt-link-rfc2396E" href="mailto:lauritsen@picoquant.com"><lauritsen@picoquant.com></a> wrote:
>I'm facing the following problem for which I haven't found any solution
>in the forums:
>
>nounix in smb mounts when using SMB2 protocol or higher
>
>mount.cifs version: 6.4
>
>Samba version 4.3.11-Ubuntu
>
>samba file server runs on latest Ubuntu server 4.4.0-109-generic
>#132-Ubuntu
>
>Ubuntu clients are integrated through sssd
>
>after applying the last update for Ubuntu the following misbehaviour
>came to our attention:
>
>When connecting samba from an Ubuntu client with the smb protocol NT1
>everything works as expected.
>
>When using vers=2.0 the share is mounted with the nounix option which
>leads all files to appear as owned by root.
>
>example:
>
>version2:
>
># sudo mount.cifs //tera/vid /mnt --verbose -o
>"username=kristian",vers=2.0
>
># mount
>
>//tera/vid on /mnt type cifs
>(rw,relatime,vers=2.0,sec=ntlmssp,cache=strict,username=kristian,domain=PQ,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.1.200,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=65536,wsize=65536,echo_interval=60,actimeo=1)
>
>kristian@WS01635:~$ ll /mnt
>total 2052
>drwxr-xr-x  2 root root    0 Jan 29  2016 ./
>drwxr-xr-x 25 root root 4096 Jan 19 11:06 ../
>drwxr-xr-x  2 root root    0 Apr  5  2017 Analysis_Tutorials/
>-rwxr-xr-x  1 root root 4096 Jan 29  2016 ._.DS_Store*
>-rwxr-xr-x  1 root root 8196 Aug 29 15:51 .DS_Store*
>drwxr-xr-x  2 root root    0 Jun  3  2015 LSM_Acquisition/
>drwxr-xr-x  2 root root    0 Jun 10  2015 PQWS2014_raw/
>drwxr-xr-x  2 root root    0 Nov  4  2014 TRF2014_Talks/
>drwxr-xr-x  2 root root    0 Mai  9  2016 TRMic2015_raw/
>drwxr-xr-x  2 root root    0 Jul 21  2015 Video_Workshop_WS20/
>drwxr-xr-x  2 root root    0 Apr 11  2012 X02_MT200_Film/
>drwxr-xr-x  2 root root    0 Mär 19  2012 X03_easyTau_TRES_wizard/
>
>On samba server:
>
>smbstatus |grep kristian
>
>14850     kristian      domain users  10.1.10.137 
>(ipv4:10.1.10.137:56654) SMB2_02
>
>Falling back to version 1 shows the desired behavoiour:
>
>~$ sudo mount.cifs //tera/vid /mnt --verbose -o
>"username=kristian",vers=1.0
>
>~$ mount
>
>//tera/vid on /mnt type cifs
>(rw,relatime,vers=1.0,cache=strict,username=kristian,domain=PQ,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.1.200,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,echo_interval=60,actimeo=1)
>
>~$ ll /mnt
>
>drwxrwxr-x+ 10 root       domain users    0 Jan 29  2016 ./
>drwxr-xr-x  25 root       root         4096 Jan 19 11:06 ../
>drwxrwxrwx+ 27 ruettinger domain users    0 Apr  5  2017
>Analysis_Tutorials/
>-rwxr--r--+  1 ruettinger domain users 4096 Jan 29  2016 ._.DS_Store*
>-rwxr--r--+  1 ruettinger domain users 8196 Aug 29 15:51 .DS_Store*
>drwxrwxr-x+  6 ruettinger domain users    0 Jun  3  2015
>LSM_Acquisition/
>drwxrwxr-x+  5 ruettinger domain users    0 Jun 10  2015 PQWS2014_raw/
>drwxrwxr-x+  5 ruettinger domain users    0 Nov  4  2014 TRF2014_Talks/
>drwxrwxr-x+ 16 ruettinger domain users    0 Mai  9  2016 TRMic2015_raw/
>drwxrwx--x+  8 jana       domain users    0 Jul 21  2015
>Video_Workshop_WS20/
>drwxrwxrwx+  2 ruettinger domain users    0 Apr 11  2012
>X02_MT200_Film/
>drwxr-xr-x+  3 ruettinger domain users    0 Mär 19  2012
>X03_easyTau_TRES_wizard/
>
>on samba server:
>
>smbstatus |grep kristian
>
>14866     kristian      domain users  10.1.10.137 
>(ipv4:10.1.10.137:56732) NT1
>
>
>any ideas what's going wrong ?
>
>We really would like to use the current SMB protocol for all users.
>
>best regards
>
>Kristian
</pre>
    </div>
  </body>
</html>