We access our FreeNAS box from a Windows environment and would like to be able to set the 'Readonly' DOS attribute.
At first this did not work as only the (unix)owner of a file can set that flag. Often the last person to edit the file becomes the owner so other people could no longer change the flag.
To work around that we set 'force user = root' in the advanced properties of the CIFS share.
This worked perfectly for about a week. Then, without any apparent reason I noticed the readonly flag was gone from all files and trying to add the flag no longer worked (no error, just no effect).
Strange, so I stopped the CIFS service and restarted it 10 seconds later==> All the flags were back on the files they were supposed to be on.
This worked fine for a week and then it happened again: all the flags gone and restarting CIFS brought them back.
Note: We are running 8.3.0 RC1 and have not upgraded to the production version yet. I could not find any tickets related to DOS-flags.
Note: In the CIFS service both 'Support DOS File Attributes' and 'EA Support' are selected.
What can cause the (support for) the read-only flags to disappear?
At first this did not work as only the (unix)owner of a file can set that flag. Often the last person to edit the file becomes the owner so other people could no longer change the flag.
To work around that we set 'force user = root' in the advanced properties of the CIFS share.
This worked perfectly for about a week. Then, without any apparent reason I noticed the readonly flag was gone from all files and trying to add the flag no longer worked (no error, just no effect).
Strange, so I stopped the CIFS service and restarted it 10 seconds later==> All the flags were back on the files they were supposed to be on.
This worked fine for a week and then it happened again: all the flags gone and restarting CIFS brought them back.
Note: We are running 8.3.0 RC1 and have not upgraded to the production version yet. I could not find any tickets related to DOS-flags.
Note: In the CIFS service both 'Support DOS File Attributes' and 'EA Support' are selected.
What can cause the (support for) the read-only flags to disappear?