FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
08-02-2022 01:01 PM
Hello,
We have a customer that is trying to access to a shared windows folder in order to read and write files,
He tried to execute a script using the NodeRed application but when he tried to install the "pysmb" library it returned an error because the Core does not have installed the "pip" library.
Now he is trying to mount a drive in the ctrlX Core using the "mount" Ubuntu command, but when he executes the code the Core returns an "access denied" error,
Is it posible to have a mounted drive addressed to a Windows folder? Is there a possibility to have an "all-rights/privileges" user?
Thanks in advance,
Solved! Go to Solution.
08-02-2022 04:12 PM - edited 08-02-2022 04:20 PM
Hello,
First some information regarding the use of the python script. Pip install is not possible on the ctrlX CORE due to security issues. But you can unpack your python wheels by hand and bring them to the active configuration to use them in your python scripts on the ctrlX CORE (see this thread for more information). But please keep in mind that this is only possible python modules. If you want to use python modules which include compiled code you would need to write your own snap in python (see the ctrlX AUTOMATION SDK for mor information on that).
But you already talked about Node-Red. What about doing the file access in Node-Red instead of a Python script? The Node Red package "node-red-contrib-smb" is used by one Community Member in this thread.
You can have a system user on the ctrlX CORE, but for development purposes only! Your ctrlX CORE will be marked as unsafe device further on an must not be used in production mode. Please get in contact with your known sales contact person to request such a system user (see this thread for more information).
Here are two related posts to your topic in the forum:
Best regards,
Nick
08-03-2022 10:37 AM
Hello nickH,
Thank you very much for your detailed response!
We will forward it to the customer,
Best regards,
Eric