Windows 10 machines unable to open a shared folder

    • OMV 2.x
    • Resolved
    • Windows 10 machines unable to open a shared folder

      HI
      I've spend hours looking at other configs, and posts etc and I seem to have my setup as it should be.
      I've created my family as indivdual users and added them all to a group called family.
      I've created a share folder for each and every one, with access by only that family member. (I cannot delete the HDD, so I am using existing folders - these were created by an old Raspberry Pi NAS)
      Then I have only two commonly shared folders by the whole family, with read/write and ACL access set according to basically everyone else on internet. :)
      I've added these folders to SMB/CIFS, again as per WWW!

      These common two folders ("Media" and "Shared) can be accessed with the usernames and passwords on a Linux machine and even on Android devices. (Duh, I logged in with my account, so that Linux don't ask for username and PW.) But from a Windows 10 machine, I can only access the folders from the administrator account. When I change username and password, I just can't access the shares. I can access the individual user's folder with his credentials, but not the shares. I can see the folders under "Network" when I click on "RASPBERRYPI" as I expect, but no access, not even viewing.

      I have no idea what to do and not sure if its a windows issue or OMV setup issue.
      Below is the global and one shared folder in my smb.conf file.
      At this stage, I have switched ACL on and off on the folder.
      This setup is on a Raspberry Pi B+

      #======================= Global Settings =======================
      [global]
      workgroup = WORKGROUP
      server string = %h server
      dns proxy = no
      log level = 0
      syslog = 0
      log file = /var/log/samba/log.%m
      max log size = 1000
      syslog only = yes
      panic action = /usr/share/samba/panic-action %d
      encrypt passwords = true
      passdb backend = tdbsam
      obey pam restrictions = yes
      unix password sync = no
      passwd program = /usr/bin/passwd %u
      passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      pam password change = yes
      socket options = TCP_NODELAY IPTOS_LOWDELAY
      guest account = nobody
      load printers = no
      disable spoolss = yes
      printing = bsd
      printcap name = /dev/null
      unix extensions = yes
      wide links = no
      create mask = 0777
      directory mask = 0777
      use sendfile = yes
      aio read size = 16384
      aio write size = 16384
      null passwords = no
      local master = yes
      time server = no
      wins support = no
      [Media_folder]
      comment = There is seperate folders for photos and videos etc
      path = /media/f7532cf1-619f-49ab-a549-2a5672ccdd01/Media folder/
      guest ok = no
      read only = no
      browseable = yes
      inherit acls = no
      inherit permissions = no
      ea support = no
      store dos attributes = no
      vfs objects = recycle
      recycle:repository = .recycle/%U
      recycle:keeptree = yes
      recycle:versions = yes
      recycle:touch = yes
      recycle:directory_mode = 0777
      recycle:subdir_mode = 0700
      recycle:exclude =
      recycle:exclude_dir =
      recycle:maxsize = 0
      printable = no
      create mask = 0755
      force create mode = 0644
      directory mask = 0755
      force directory mode = 0755
      hide dot files = yes
      valid users = "Jacques","Sarah","Caira","Elmie","Openelec",@"Family"
      invalid users =
      read list =
      write list = "Jacques","Sarah","Caira","Elmie","Openelec",@"Family"

      The post was edited 1 time, last by bergie5737 ().

    • Could be that drives come with restricted permissions from the other system. If you have omvextras installed go to shared folder section there should be a reset permission tab. You can select there and clear ACL and reset to default the folder "Media Folder"

      also I am not sure if parhs with spaces need to be quoted in samba. I will have to test it.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • I've checked permissions on the file system itself, and found one or two mistakes. I used the "ls -l" command to see if permissions changed or not when I change it from the web interface, and it did. Below is some output, I've reset all permissions, so not all folders are set as wanted yet.

      ​drwxrws---+ 14 Caira users 4096 Dec 9 21:57 Caira storage
      drwxrws---+ 2 Elmie users 4096 Jun 15 23:00 Elmie storage
      drwxrws---+ 4 Jacques users 4096 Dec 7 10:44 Jacques storage
      drwxr-s--- 2 root users 4096 Jun 15 21:55 Linux ISO
      drwxrws---+ 6 root users 4096 Dec 9 21:59 Media folder
      drwxr-s--- 5 root users 4096 Apr 18 2013 PC


      I am still unable to get access via any other user's credentials.
      I tried to map the network drive in the following way: Username: \\RASPBERRYPI\Caira and just Caira.
      Windows tell me username invalid.
    • Souldn't you access

      as \\RASPBERRYPI\Media_Folder\ after that you should get a user/pass prompt

      Can you list contents of this,

      ls -la /media/f7532cf1-619f-49ab-a549-2a5672ccdd01/

      I want to see the permissions on the folder and above
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Logging in as \\RASPBERRYPI\Media_folder\ has no effect.
      Strangely enough I can access the users folders from an Android device with ES File explorer using their credentials.
      From the word go, I can access with my name, Jacques, but I guess its only because I am administrator with root previleages.
      I've made the users owners of their own folder to no avail, I simply cannot access it with their credentials.

      Below is the output of ls -la.
      ​drwxr-s--- 13 root users 4096 Dec 7 00:39 .
      drwxr-xr-x 5 root root 4096 Dec 6 23:38 ..
      drwxrws---+ 14 Caira users 4096 Dec 9 21:57 Caira storage
      drwxrws---+ 2 Elmie users 4096 Jun 15 23:00 Elmie storage
      drwxrws---+ 4 Jacques users 4096 Dec 7 10:44 Jacques storage
      drwxr-s--- 2 root users 4096 Jun 15 21:55 Linux ISO
      drwxrws---+ 6 root users 4096 Dec 9 21:59 Media folder
      drwxr-s--- 5 root users 4096 Apr 18 2013 PC
      drwxr-s--- 2 root users 4096 Sep 16 2015 $RECYCLE.BIN
      drwxr-s--- 2 root users 4096 Feb 20 2016 Recycled
      drwxrws---+ 2 root users 4096 Dec 9 22:01 Shared folder
      -rw-r----- 1 root users 139264 Oct 14 2010 Start PC.exe
      drwxr-s--- 4 root users 4096 Jun 15 23:02 .Trash-0
      drwxr-s--- 4 root users 4096 Feb 20 2016 .Trash-100
    • You have several issues there. Start by creating a shared folder of the root drive volume, give a name and as for path type /
      then go to shared folder section go to reset permission tab. This tab should be present if you have omvextras installed. Select your new share and and reset permission and clear ACL.
      Now try again to access using samba.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • OK, I've done as you said and it is now working from at least one device! Too late at night now to check them all.
      Thank you sooo much.

      For now here is the run-down when adding existing folders.
      Create a "root" share and reset all permissions.
      Add other shares.
      Add users.
      Add privileges for users.
      Add CIFS/SMB shares.

      The only thing I seems to miss now, is to figure out the privileges and ACL permissions. I've left ACL as "root:user" but activated only the user privileges. The main thing is that each user get one "private" share only he/she has access to.

      regards