Posts by Fractal

    I just found it.


    I had to set the group of the disk to users with chgrp users /srv/dev-disk-by-label-nasdrive


    drwxrws--- 14 root root 4.0K Jan 23 22:25 dev-disk-by-label-nasdrive (before)
    drwxrws--- 14 root users 4.0K Jan 23 22:25 dev-disk-by-label-nasdrive (after)


    Is this a bad idea? Any concerns regarding security or stability? Would it be better to set


    drwxrwsr-x 14 root root 4.0K Jan 23 22:25 dev-disk-by-label-nasdrive instead?

    Hi,


    I am Using OMV 4.1.31.-1 (Arrakis). I can connect to my SMB share but I cannot access its content.


    In Windows 10 I'm connecting with Map network drive via \\192.168.178.100\Sharetest or \\omvnas\Sharetest. If I provide a wrong password, the drive won't be added. However, with the correct password the drive will be mapped but I cannot open it, it's a "Permission denied" error. From Xubuntu Live I tried something like mount -t cifs -o ver=3.11,user=user1 ... but I get cifs_mount failed w/return code = -13


    What I have checked so far:

    • Create user1 in groups: user1, users, sambashare
    • Access Rights Management > Shared Folders: Add "Sharetest"

      • Permissions: Everyone: read/write
      • Privileges: Read/Write for user user1 and group user1
      • Tried with and without ACLs
    • Services > SMB/CIFS > Settings:

      • Enable
      • Workgroup: WORKGROUP
      • Local master browser OFF
      • Home directories: OFF
      • Browseable: ON
      • WINS support OFF
      • Use sendfile: ON
    • Services > SMB/CIFS > Shares:

      • Sharetest
      • Public: Guests allowed
      • Browseable ON
      • Inherit ACLs ON
    • Changed file permissions:

      • chown -R user1:users /srv/dev-disk-by-label-nasdrive/Sharetest (tried with and without this)
      • chmod -R 777 /srv/dev-disk-by-label-nasdrive/Sharetest (tried with and without this)
    • File permissions of /srv/dev-disk-by-label-nasdrive/Sharetest:

      Bash: ls -la
      root@omvnas:/srv/dev-disk-by-label-nasdrive/Sharetest #
      drwxrwsrwx 4 user1 users 4.0K Jan 25 01:14 .
      drwxrws--- 14 root root 4.0K Jan 23 22:25 ..
      drwxrwsrwx 2 user1 users 4.0K Jan 24 23:17 MyFolder
      root@omvnas:/sharedfolders/Sharetest #
      drwxrwsrwx 4 user1 users 4.0K Jan 25 01:14 .
      drwxr-xr-x 4 root root 4.0K Jan 24 00:07 ..
      drwxrwsrwx 2 user1 users 4.0K Jan 24 23:17 MyFolder


      As you can see I have setgid set, but is doesn't seem to change anything.




    Code
    Jan 25 01:24:59 omvnas nmbd[19559]: [2020/01/25 01:24:59.040304, 4, pid=19559, effective(0, 0), real(0, 0)] ../source3/nmbd/nmbd_workgroupdb.c:165(find_workgroup_on_subnet)
    Jan 25 01:24:59 omvnas nmbd[19559]: find_workgroup_on_subnet: workgroup search for WORKGROUP on subnet 192.168.178.100: found.
    Jan 25 01:24:59 omvnas nmbd[19559]: [2020/01/25 01:24:59.040469, 10, pid=19559, effective(0, 0), real(0, 0)] ../source3/nmbd/nmbd_sendannounce.c:376(announce_myself_to_domain_master_browser)
    Jan 25 01:24:59 omvnas nmbd[19559]: announce_myself_to_domain_master_browser: no unicast subnet, ignoring.


    I accidentally created an aquota.group and aquota.user file in /srv/dev-disk-by-label-nasdrive via the UI but there isn't any active quota set.


    With debian from WSL I see:


    gencache_notrans seems to be a known bug in WSL1.


    What am I missing here? Could anybody please provide their output of the commands I used above? Like smbclient //omvnas/Sharetest -U user1. What else can I check?