directory invisible and then SMB not accessible | 11.2-U5

neodg

Cadet
Joined
Jan 5, 2017
Messages
3
FreeNAS 11.2-U5 (new)
1 samba share for Windows
1 user for access

Access is ok until here

Now i copy data via robocopy from a windows client so the samba share in a directory. Immediately the folder is invisible in SMB and after some time the copy process stuck and the smb-share is not accessible from the windows client. I have never seen such a behavior?

Code:
root@backup[/var/log/samba4]# cd /mnt/Storage
root@backup[/mnt/Storage]# ls -l
total 15
drwxr-xr-x  9 root  wheel  9 Sep  6 08:52 iocage
drwxrwxr-x+ 3 root  wheel  4 Sep  6 09:47 SMB-Backup
root@backup[/mnt/Storage]# cd SMB-Backup
root@backup[/mnt/Storage/SMB-Backup]# ls -l
total 1
-rwxrwxr-x+ 1 root           wheel  0 Sep  6 09:45 .windows
drwxrwxr-x+ 4 Administrator  wheel  4 Sep  6 09:59 Freitag
root@backup[/mnt/Storage/SMB-Backup]# cd Freitag
root@backup[/mnt/Storage/SMB-Backup/Freitag]# ls -l
total 16
drwxrwxr-x+ 4 Administrator  wheel   4 Aug  1 11:34 $RECYCLE.BIN
drwxrwxr-x+ 8 Administrator  wheel  12 Sep  3 12:37 Ablagen
drwxrwxr-x+ 2 Administrator  wheel   3 Sep  6 10:00 Home


The rights looks good for me.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
FreeNAS 11.2-U5 (new)
1 samba share for Windows
1 user for access

Access is ok until here

Now i copy data via robocopy from a windows client so the samba share in a directory. Immediately the folder is invisible in SMB and after some time the copy process stuck and the smb-share is not accessible from the windows client. I have never seen such a behavior?

Code:
root@backup[/var/log/samba4]# cd /mnt/Storage
root@backup[/mnt/Storage]# ls -l
total 15
drwxr-xr-x  9 root  wheel  9 Sep  6 08:52 iocage
drwxrwxr-x+ 3 root  wheel  4 Sep  6 09:47 SMB-Backup
root@backup[/mnt/Storage]# cd SMB-Backup
root@backup[/mnt/Storage/SMB-Backup]# ls -l
total 1
-rwxrwxr-x+ 1 root           wheel  0 Sep  6 09:45 .windows
drwxrwxr-x+ 4 Administrator  wheel  4 Sep  6 09:59 Freitag
root@backup[/mnt/Storage/SMB-Backup]# cd Freitag
root@backup[/mnt/Storage/SMB-Backup/Freitag]# ls -l
total 16
drwxrwxr-x+ 4 Administrator  wheel   4 Aug  1 11:34 $RECYCLE.BIN
drwxrwxr-x+ 8 Administrator  wheel  12 Sep  3 12:37 Ablagen
drwxrwxr-x+ 2 Administrator  wheel   3 Sep  6 10:00 Home


The rights looks good for me.
use getfacl to show the ACL on one of the copied files that you can't see. Post the complete robocopy command you are using. Post the ACL as seen on the windows client. Example in powershell: get-acl c:\Users\anodos\Desktop\file.txt | format-list. Also post output of smbstatus from freenas server.
 

neodg

Cadet
Joined
Jan 5, 2017
Messages
3
Code:
root@backup[/mnt/Storage/SMB-Backup]# getfacl Freitag
# file: Freitag
# owner: Administrator
# group: wheel
            owner@:rwxpDdaARWcCos:fd----I:allow
            group@:rwxpDdaARWcCos:fd----I:allow
         everyone@:r-x---a-R-c---:fd----I:allow



Robocopy.exe e:\ b:\Freitag\ /MIR (b:\ is the SMB path)


Code:
PS E:\> get-acl .\Ablagen\ | format-list


Path   : Microsoft.PowerShell.Core\FileSystem::E:\Ablagen\
Owner  : VORDEFINIERT\Administratoren
Group  : HIDDENDOMAIN\Domänen-Benutzer
Access : NT-AUTORITÄT\SYSTEM Allow  FullControl
         VORDEFINIERT\Administratoren Allow  FullControl
         hiddendomain2\Administrator Allow  FullControl
         HIDDENDOMAIN\Administrator Allow  FullControl
         HIDDENDOMAIN\User1 Allow  FullControl
         HIDDENDOMAIN\User2 Allow  FullControl
Audit  :
Sddl   : O:BAG:DUD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;FA;;;S-1-5-21-3717672653-425051059-3263019962-500)(A;OICI;FA;;;S-1-5-21-1532075709-3489103068-681743304-
         500)(A;OICI;FA;;;S-1-5-21-1532075709-3489103068-681743304-1110)(A;OICI;FA;;;S-1-5-21-1532075709-3489103068-681743304-1124)


The user that copied the files is the local administrator of the server.

Code:
Samba version 4.9.9
PID     Username     Group        Machine                                   Prot                                                                                                             ocol Version  Encryption           Signing
--------------------------------------------------------------------------------                                                                                                             --------------------------------------------------------
5582    Administrator Administrator 192.168.0.32 (ipv4:192.168.0.32:53404)    SM                                                                                                             B3_11           -                    partial(AES-128-CMAC)

Service      pid     Machine       Connected at                     Encryption                                                                                                                Signing
--------------------------------------------------------------------------------                                                                                                             -------------
SMB-Backup   5582    192.168.0.32  Fri Sep  6 09:47:02 2019 CEST    -                                                                                                                         -

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           Share                                                                                                             Path   Name   Time
--------------------------------------------------------------------------------                                                                                                             ------------------
5582         1001       DENY_NONE  0x100081    RDONLY     NONE             /mnt/                                                                                                             Storage/SMB-Backup   .   Fri Sep  6 09:47:05 2019
5582         1001       DENY_NONE  0x100081    RDONLY     NONE             /mnt/                                                                                                             Storage/SMB-Backup   .   Fri Sep  6 09:47:07 2019
5582         1001       DENY_NONE  0x100081    RDONLY     NONE             /mnt/                                                                                                             Storage/SMB-Backup   .   Fri Sep  6 09:47:07 2019
5582         1001       DENY_ALL   0x17019f    RDWR       LEASE(RWH)       /mnt/                                                                                                             Storage/SMB-Backup   Freitag/Home/DfsrPrivate/Staging/ContentSet{0E0BE7A7-A319-4                                                                                                             B07-8266-B26DD6A1D6BA}-{5FEF7AEE-90B4-4288-B9B2-61CC3F697A5C}/05/5753405-{05483F                                                                                                             43-E295-4A21-81BF-AF63BD712234}-v5753405-{05483F43-E295-4A21-81BF-AF63BD712234}-                                                                                                             v5753405-Downloaded.frx   Fri Sep  6 13:39:32 2019
5582         1001       DENY_NONE  0x0         RDONLY     NONE             /mnt/                                                                                                             Storage/SMB-Backup   Freitag/Home/DfsrPrivate/Staging/ContentSet{0E0BE7A7-A319-4                                                                                                             B07-8266-B26DD6A1D6BA}-{5FEF7AEE-90B4-4288-B9B2-61CC3F697A5C}/05/5753405-{05483F                                                                                                             43-E295-4A21-81BF-AF63BD712234}-v5753405-{05483F43-E295-4A21-81BF-AF63BD712234}-                                                                                                             v5753405-Downloaded.frx   Fri Sep  6 13:40:08 2019
5582         1001       DENY_NONE  0x120197    RDWR       NONE             /mnt/                                                                                                             Storage/SMB-Backup   Freitag/Home/DfsrPrivate/Staging/ContentSet{0E0BE7A7-A319-4                                                                                                             B07-8266-B26DD6A1D6BA}-{5FEF7AEE-90B4-4288-B9B2-61CC3F697A5C}/05/5753405-{05483F                                                                                                             43-E295-4A21-81BF-AF63BD712234}-v5753405-{05483F43-E295-4A21-81BF-AF63BD712234}-                                                                                                             v5753405-Downloaded.frx:{59828bbb-3f72-4c1b-a420-b51ad66eb5d3}.rdc.1   Fri Sep                                                                                                               6 13:40:08 2019

 

neodg

Cadet
Joined
Jan 5, 2017
Messages
3
Code:
root@backup[/mnt/Storage/SMB-Backup]# testparm -s
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[SMB-Backup]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
        aio max threads = 2
        deadtime = 15
        disable spoolss = Yes
        dns proxy = No
        dos charset = CP437
        kernel change notify = No
        lm announce = Yes
        load printers = No
        local master = No
        logging = file
        max log size = 51200
        max open files = 1885241
        nsupdate command = /usr/local/bin/samba-nsupdate -g
        obey pam restrictions = Yes
        printcap name = /dev/null
        security = USER
        server min protocol = SMB2_02
        server role = standalone server
        server string = FreeNAS Server
        idmap config *: range = 90000001-100000000
        idmap config * : backend = tdb
        acl allow execute always = Yes
        create mask = 0666
        directory mask = 0777
        directory name cache size = 0
        dos filemode = Yes
        strict locking = No


[SMB-Backup]
        aio write size = 0
        path = "/mnt/Storage/SMB-Backup"
        read only = No
        veto files = /.snapshot/.windows/.mac/.zfs/
        vfs objects = zfs_space zfsacl streams_xattr
        zfsacl:acesort = dontcare
        nfs4:chown = true
        nfs4:acedup = merge
        nfs4:mode = special
 
Top