[Bug 1703490] Re: Unable to mount network volume on 17.10 Samba server

Patrick Dunford kahukowhai at gmail.com
Tue Jul 11 15:25:07 UTC 2017


On 12/07/17 03:03, Andreas Hasenack wrote:
> I tried your shares, and they seem to work as expected. Note that
> [Homes] is read only (default for "read only" is "yes"), so you won't be
> able to write to Homes or even Maps under it while connected to Homes,
> but if you connect to Maps, then you can:
>
> oot at nsn7:~# for d in Home Maps Media; do mount //10.0.5.55/$d /patrick/$d -o user=patrick,password=patrick,vers=1.0; done
> root at nsn7:~# cd /patrick/Home/
> root at nsn7:/patrick/Home# touch hello-there
> touch: cannot touch 'hello-there': Permission denied
> root at nsn7:/patrick/Home# cd Maps
> root at nsn7:/patrick/Home/Maps# touch hello-there
> touch: cannot touch 'hello-there': Permission denied
> root at nsn7:/patrick/Home/Maps# cd /patrick/Maps/
> root at nsn7:/patrick/Maps# touch hello-there
> root at nsn7:/patrick/Maps# cd /patrick/Home/Maps/
> root at nsn7:/patrick/Home/Maps# ll
> total 0
> drwxr-xr-x+ 2 1001 1002 0 Jul 11 11:53 ./
> drwxr-xr-x+ 4 1001 1002 0 Jul 11 11:50 ../
> -rw-r--r--+ 1 1001 1002 0 Jul 11 11:53 hello-there
>
>
> Note that Home is listed as rw, but it's read-only enforced on the server:
> root at nsn7:~# mount -t cifs
> //10.0.5.55/Home on /patrick/Home type cifs (rw,relatime,vers=1.0,cache=strict,username=patrick,domain=15-89,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.5.55,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,actimeo=1,user=patrick)
> //10.0.5.55/Maps on /patrick/Maps type cifs (rw,relatime,vers=1.0,cache=strict,username=patrick,domain=15-89,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.5.55,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,actimeo=1,user=patrick)
> //10.0.5.55/Media on /patrick/Media type cifs (rw,relatime,vers=1.0,cache=strict,username=patrick,domain=15-89,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.5.55,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,actimeo=1,user=patrick)
>
> A few more questions:
>
> a) I don't understand your mentioning of "run/user/1000/gvfs", how is
> that involved?
In Thunar, if you type smb://mainpc/maps into the address bar then it 
automounts to /run/user/1000/gvfs/smb-share:server=mainpc,share=maps, 
this is a built in behaviour of the file manager Thunar on Xubuntu 
(assuming your user account id is 1000)
>
> b) do you have usershares set? try:
> sudo net usershare list -l
No output from this command
>
> c) have you tried smbclient?
Not yet
>
> d) are there other filesystems involved in these shares and their
> mountpoints?
>
> e) Can we narrow down which shares are not working, out of your 3? Home,
> Maps, Media? Or all of them, when contacted with a xenial samba cifs (or
> smbclient)?
I am primarily testing the share Maps which should be fully read/write
If I attempt to mount myself using mount.cifs  or the automount in 
Thunar (smb://mainpc/maps) the most I can get is read only access.

Most of the time I am mounting shares in fstab and the usual outcome is 
permission denied error 13 and no mount at all (not even read only)

>
> My cifs-utils package on xenial is at version 2:6.4-1ubuntu1.1, and my samba packages are:
> # dpkg-query -W samba-common samba-common-bin samba-libs smbclient
> samba-common	2:4.3.11+dfsg-0ubuntu0.16.04.8
> samba-common-bin	2:4.3.11+dfsg-0ubuntu0.16.04.8
> samba-libs:amd64	2:4.3.11+dfsg-0ubuntu0.16.04.8
> smbclient	2:4.3.11+dfsg-0ubuntu0.16.04.8
>

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1703490

Title:
  Unable to mount network volume on 17.10 Samba server

Status in samba package in Ubuntu:
  Incomplete

Bug description:
  I have a computer with a new 17.10 installation, and I have network
  resources on it that I want to share to other computers on my network,
  using Samba. I set it up the same way with Samba as I did with the old
  16.04 installation, but all the other computers on the network that
  are running Xubuntu can't connect to it like they did before.

  The following are the user experiences of different computers in my
  network connecting to shared SMB resources on other computers:

  16.04 client mount.cifs to 16.04 server: full access
  16.04 client path run/user/1000/gvfs to 16.04 server: full access
  17.10 client mount.cifs to 16.04 server: full access

  16.04 client mount.cifs to 17.10 server: access denied error
  17.10 client mount.cifs to 16.04 server: access denied error
  16.04 client path run/user/1000/gvfs to 17.10 server: read only access
  Windows 10 client explorer map drive to 17.10 server: full access

  the server used to run 16.04 and is now running 17.10. It is the same
  computer and has the same network resources shared on it that it had
  when it was running 16.04.

  The server installation of 17.10 was a clean install but the home
  folder was existing on a different volume and was remounted after the
  install.

  As you can see a Windows 10 computer is the only computer in the
  network that can connect to the Samba share with full access and no
  apparent difference in the user experience.

  Ubuntu Artful Aardvark (development branch) 17.10
  apt-cache policy samba
  samba:
    Installed: 2:4.5.8+dfsg-2ubuntu3
    Candidate: 2:4.5.8+dfsg-2ubuntu3
    Version table:
   *** 2:4.5.8+dfsg-2ubuntu3 500
          500 http://nz.archive.ubuntu.com/ubuntu artful/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: samba 2:4.5.8+dfsg-2ubuntu3
  ProcVersionSignature: Ubuntu 4.10.0-26.30-generic 4.10.17
  Uname: Linux 4.10.0-26-generic x86_64
  ApportVersion: 2.20.5-0ubuntu5
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Tue Jul 11 13:25:40 2017
  SambaClientRegression: Yes
  SourcePackage: samba
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1703490/+subscriptions



More information about the foundations-bugs mailing list