LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing RT file permissions programmatically

Hi all.

 

I have some cRIOs out in the field. There is a folder, called 'Test', that I would like to read and write items to. Currently the folder permission is set to 'webserv:ni'.

 

In my RT init code, I would like to programmatically change this folder ownership to be 'lvuser:ni' and permission '777'.

 

Locally, I can ssh admin@IP and run the command 'chown lvuser:ni pathToFolder/test' and also 'chmod 777 pathToFolder/test' and it works, however I cant get this to work programmatically using the SysExec vi. I believe it has to do with the sudo permisisons, but I am not exactly sure.

 

Does anyone have any solutions to run the 'chmod' and 'chown' command, executed on the RT? Ideally using SysExec but open to other solutions.

 

Thanks.

0 Kudos
Message 1 of 2
(981 Views)

https://forums.ni.com/t5/LabVIEW/Mount-NSF-share-to-NI-Linux/td-p/3822135

 

in this thread a solution is described to use 'mount' maybe that will work for chown as well


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 2
(962 Views)