By using the CAA FILE library (FB FILE.Open) (raspberry pi, codesys 3.5.19.0) I always get the error FILE_OPERATION_DENIED
The file exist, it has r/w/x access and path is correct...
Some idea to fix it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
/var/opt/codesys/PlcLogic not work here, again FILE_OPERATION_DENIED. May I simply moved my files in /var/opt/codesys/PlcLogic or need some particular settings?
Last edit: fleaplc 2023-09-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have code written since version 3.5.16 to access the USB drive, how can I do that now the file access has been taken away?
I have tried adding a sybolic link to the usb drive in the following directories:
/var/opt/codesys/PlcLogic/
/var/opt/CODESYS/PlcLogic/
/opt/CODESYS/PlcLogic/
I still recieve a "FILE_OPERATION_DENIED" response when accessing the USB drive.
Last edit: sean-barton 2023-10-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone,
I am using SP19 patch 2 on a Kunbus device with runtime package 4.9.0.0. I am having the same problem as mentioned above. With the FB File.open I get the FILE_OPERATION_DENIED error. I have also tried the path /var/opt/codesys/PlcLogic. Any advice?
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
By using the CAA FILE library (FB FILE.Open) (raspberry pi, codesys 3.5.19.0) I always get the error FILE_OPERATION_DENIED
The file exist, it has r/w/x access and path is correct...
Some idea to fix it?
more posts ...
due security reason files could only be accessed in /var/opt/codesys/PlcLogic directory
Hi @eschwellinger Is this new with SP19? Or Hardware based?
security related..since SP19 not hardware based
mmm.. I moved my file to /var/opt/codesys/PlcLogic directory but I still getting FILE_OPERATION_DENIED.. Did I miss something? file rights are 0755
Last edit: hki75 2023-09-27
/var/opt/codesys/PlcLogic not work here, again FILE_OPERATION_DENIED. May I simply moved my files in /var/opt/codesys/PlcLogic or need some particular settings?
Last edit: fleaplc 2023-09-30
I have code written since version 3.5.16 to access the USB drive, how can I do that now the file access has been taken away?
I have tried adding a sybolic link to the usb drive in the following directories:
/var/opt/codesys/PlcLogic/
/var/opt/CODESYS/PlcLogic/
/opt/CODESYS/PlcLogic/
I still recieve a "FILE_OPERATION_DENIED" response when accessing the USB drive.
Last edit: sean-barton 2023-10-13
Hello everyone,
I am using SP19 patch 2 on a Kunbus device with runtime package 4.9.0.0. I am having the same problem as mentioned above. With the FB File.open I get the FILE_OPERATION_DENIED error. I have also tried the path /var/opt/codesys/PlcLogic. Any advice?
Chris
in your project, to access /var/opt/codesys/PlcLogic/my.file, use the string 'my.file' or '$$PlcLogic$$/my.file'
Thank you
Worked for me, thanks!