nounix in smb mounts when using SMB2 protocol or higher
Kristian Lauritsen
lauritsen at picoquant.com
Fri Jan 19 14:42:45 UTC 2018
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 ?
The samba team says this is not a bug.
see below
-------- Forwarded Message --------
Subject: Re: why i want a bugzilla account
Date: Fri, 19 Jan 2018 14:51:09 +0100
From: Björn Jacke <bjacke at samba.org>
To: lauritsen at picoquant.com, Kristian Lauritsen <lauritsen at picoquant.com>, bugzilla-maintenance at samba.org
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 <lauritsen at picoquant.com> 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/smb-clients/attachments/20180119/5fd8de3f/attachment.html>
More information about the smb-clients
mailing list