Windows clients can Read/Write but Ubuntu client can only Read

    • OMV 3.x
    • Resolved
    • Windows clients can Read/Write but Ubuntu client can only Read

      I can't seem to figure out why I am unable to write to mounted CIFS/SMB shares using my Ubuntu box. The same share folders are mounted to my Windows 10 PCs using the same account and it has have full read/write access. When I mount the same folders in Ubuntu with the same user I can only read.

      Every time I try to create a file or folder in the mounted CIFS/SMB folder I get permission denied. I can only create files or folders if I use sudo. I assume it must be a permission issue, but I am unsure what permissions I need to add in OMV. The user "media" has R/W permission to the folder. I have used the OMV extra tool to make sure to reset the permissions and remove ACL.

      Settings in OMV:

      [Blocked Image: http://i.imgur.com/kPYUqst.png]

      [Blocked Image: http://i.imgur.com/HvPxEcW.png]

      [Blocked Image: http://imgur.com/MmSK4pj][Blocked Image: http://imgur.com/MmSK4pj][Blocked Image: http://i.imgur.com/01rChFz.png]

      line in /etc/fstab from Ubuntu box:

      Source Code

      1. # mount media download folder
      2. //nas2.lesl.pw/media /mnt cifs credentials=/home/mediauser/.smbcredentials,iocharset=utf8,rw 0 0

      output of df from Ubuntu box:

      Source Code

      1. Filesystem 1K-blocks Used Available Use% Mounted on
      2. udev 1006344 0 1006344 0% /dev
      3. tmpfs 204820 3252 201568 2% /run
      4. /dev/sda1 15349744 1652000 12894980 12% /
      5. tmpfs 1024092 0 1024092 0% /dev/shm
      6. tmpfs 5120 0 5120 0% /run/lock
      7. tmpfs 1024092 0 1024092 0% /sys/fs/cgroup
      8. //nas2.lesl.pw/media 6228303224 189799024 6038438664 4% /mnt
    • Sorry for the triple post. Please delete the extra posts. When I tried to post I kept getting the following error so I thought it failed and kept retrying:

      Fatal error: An error occured. Sorry.
      Information:


      ID: 1aba215ed6d70ce9ba4926bd2b2816da94f2a4f3
      Please send the ID above to the site administrator.
      The error message can be looked up at “ACP » Logs » Errors”.
    • subzero79 wrote:

      Because your using fstab the mount is mapped to root. If you are using a desktop the the file browser should be fine. Otherwise use uid in the fstab line.
      That is described in the ubuntu wiki for mounting cifs.
      Thanks! That fixed the problem. I don't know how I missed the uid option when I was reading the wiki... I guess I shouldn't setup NAS while low on sleep. :(