取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 2 条)
1,716 次查看

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 项奖励
2 条消息(共 2 条)
1,697 次查看