Hi,
I am using OMV5 with a software RAID 1 and CIFS for sharing files with Windows machines. Works fine so far, but we have problems with about 5 files (out of about 1000). Those files are in a subfolder were the user has R/W privileges. But quite often it happens, that the user needs 3 or more attemps to open the file in Write-Mode.
So I took a look at the syslog, filtering for messages referring to the file:
Jun 11 07:59:23 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inheriting from ###PATH_TO_FILE###
Jun 11 07:59:23 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inherit mode 42770
Jun 11 07:59:23 server1 smbd[16440]: ###USER### opened file ###PATH_TO_FILE###/###FILE###.wdb read=Yes write=No (numopen=6)
Jun 11 07:59:23 server1 smbd[16440]: ###USER### closed file ###PATH_TO_FILE###/###FILE###.wdb (numopen=5) NT_STATUS_OK
Jun 11 07:59:23 server1 smbd[16440]: ###USER### closed file ###PATH_TO_FILE###/###FILE###.wdb (numopen=4) NT_STATUS_OK
Jun 11 07:59:31 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inheriting from ###PATH_TO_FILE###
Jun 11 07:59:31 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inherit mode 42770
Jun 11 07:59:31 server1 smbd[16440]: ###USER### opened file ###PATH_TO_FILE###/###FILE###.wdb read=Yes write=No (numopen=6)
Jun 11 07:59:31 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inheriting from ###PATH_TO_FILE###
Jun 11 07:59:31 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inherit mode 42770
Jun 11 07:59:31 server1 smbd[16440]: ###USER### opened file ###PATH_TO_FILE###/###FILE###.wdb read=Yes write=Yes (numopen=7)
Jun 11 07:59:31 server1 smbd[16440]: ###USER### closed file ###PATH_TO_FILE###/###FILE###.wdb (numopen=6) NT_STATUS_OK
Jun 11 07:59:31 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inheriting from ###PATH_TO_FILE###
Jun 11 07:59:31 server1 smbd[16440]: unix_mode(###PATH_TO_FILE###/###FILE###.wdb) inherit mode 42770
Alles anzeigen
Sorry for the "###PATH_TO_FILE###"-like consorship, but it is nessesary.
You can see, the third attemt to open the file is successfull ("read=Yes write=Yes"). This happens only to a handful of files, while nobody else is even in the office. The user does definetly have permissions to R/W the folder and files, some of the files were even createt by him. We do not use ACL.
The only difference I saw in the pile permissions are while using "ls -hl" in shell, were some files are "-rw-rw-r--+" and some "-rw-rw----+" - but as far as I understand this should not matter, because all users are in the group "users" wich has R/W permission.
At the moment I struggle a bit to understand why this happens. May you help me?