NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Using sudo chmod from the System Exec.vi in LabVIEW Realtime

  • I am trying to modify some files that could be uploaded to the cRIO without the correct read permissions.  I have installed sudo and modified the the permissions of the sudo file using visudo. I can change the file permissions easily from the shell (either via admin or lvuser login) but System Exec gives me a command not found when using chmod (see screen shot). 

    If I don't prepend sudo I get Operation not permitted
    chmod:/c/config/config.dat: Operation not permitted

    So I know the sudo file is set up correctly.  I read this post https://blog.sasworkshops.com/crio-tips-running-linux-command-as-root-from-labview/ and thought that by adding lvuser to the sudoers list would allow chmod to be run from the System Exec.vi 


    Any clues why it doesn't work? If it was a permissions issue then it should get operation not permitted, correct?

    nibuddy1777_0-1731349149697.png

     

0 Kudos
Message 1 of 1
(49 Views)