CIFS Behaving Badly

Status
Not open for further replies.

Pops

Dabbler
Joined
Sep 19, 2015
Messages
24
(After searching, I've not been able to find a solution, but am including information I've seen requested in other instances.)

After a recent OS update, I started having problems with Windows shares on my freeNAS server. Specifically, when a batch sync job is run from the PC using FreeFileSync, files that no longer exist on the PC cannot be deleted from the server.

When I use the PC to access the share's "Properties", the "Read Only" boxed is checked. When I uncheck it and hit "Apply", the "Confirm Attribute Changes" window appears (unset read only), I confirm the changes and apply them to subfolders, etc. The "Applying Attributes" window then appears and cycles through the contents of the folder. I then close the "Properties" window, but if I reopen it the "Read Only" attribute is back--as if I hadn't changed a thing.
-------------------
Example from FreeFileSync log:

[9:52:26 AM] Info: Deleting file "\\FREENAS\popshare2\ddriveBU\ADOBE CC\Adobe\AdobePatchFiles\{09D218A6-D6D4-42B0-89A2-CC7018D30CC0}.zip"
[9:52:49 AM] Info: Cannot delete file "\\FREENAS\popshare2\ddriveBU\ADOBE CC\Adobe\AdobePatchFiles\{09D218A6-D6D4-42B0-89A2-CC7018D30CC0}.zip".
Error Code 5: Access is denied. (DeleteFile)
-------------------
This from shell with PC name as owner (ie, popvid-1001) and custom group with all privileges (ie, fnasgroup-1001):

[root@freeNAS /mnt/fnaspool]# ls -l total 36
drwxrwxr-x+ 9 popvid fnasgroup 12 Dec 13 14:25 .freenas
-rwxrwxr-x+ 1 popvid fnasgroup 0 Dec 14 13:11 .windows
drwxrwxr-x+ 3 popvid fnasgroup 4 Oct 26 00:31 popshare1
drwxrwxr-x+ 9 popvid fnasgroup 10 Dec 14 13:15 popshare2
----------------------
Attempting to change the attributes or when FreeFileSync throws errors, I don't see anything in the Samba4 log that's related:

from samba4 log
[2015/12/16 11:04:08.157848, 1] ../source3/smbd/service.c:1130(close_cnum)
popvid (ipv4:192.168.1.9:58319) closed connection to service popshare2
[2015/12/16 11:04:08.158104, 1] ../source3/smbd/service.c:1130(close_cnum)
popvid (ipv4:192.168.1.9:58319) closed connection to service popshare1
STATUS=daemon 'smbd' finished starting up and ready to serve connectionspopvid
(ipv4:192.168.1.9:63802) closed connection to service popshare2
STATUS=daemon 'smbd' finished starting up and ready to serve connectionsget_ea:
------------------------
Sharing/CIFS settings:

Apply default permissions: y (I've tried it both ways)
Browseable: y
Allow Guest: n (I've tried it both ways)
Only Allow Guest: n
Hosts allow/deny: left blank. Same for Aux parameters.
VFS objects: default (aio_pthread, streams_xattr)
------------------------------
Storage/Dataset Permissions

owner = PC name
group = 1001 (as above)
Apply owner/group: y
Mode: RWX for both group and owner
Permission type: Windows
---------------------------------
On Windows I've deleted and recreated credentials (no problems seeing and connecting to network shares)
----------------------------------
Samba config attached as txt file:
 

Attachments

  • smb4copy.txt
    2.4 KB · Views: 249

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
You need to properly configure ACLs for your share.
post output of following commands
  • getfacl /mnt/fnaspool/popshare1
  • getfacl /mnt/fnaspool/popshare2
  • net status sessions
  • pdbedit -l
  • getent group
 

Pops

Dabbler
Joined
Sep 19, 2015
Messages
24
You need to properly configure ACLs for your share.
post output of following commands
  • getfacl /mnt/fnaspool/popshare1
  • getfacl /mnt/fnaspool/popshare2
  • net status sessions
  • pdbedit -l
  • getent group
Thanks for the reply! Results attached.
 

Attachments

  • Output.txt
    7 KB · Views: 257

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Try disabling dos attributes in your CIFS config by adding the following auxiliary parameters:

Code:
ea support = no
store dos attributes = no
map archive = no
map hidden = no
map readonly = no
map system = no
 
Status
Not open for further replies.
Top