01-08-2018 01:25 PM - edited 01-08-2018 01:29 PM
Objective: reformat USB drive to fat32 while it is plugged into a cRIO-9063.
Solution: Steps listed in this document are completed to successfully reformat the USB drive when it is plugged into a cRIO-9063. SSH is used to communicate with the cRIO-9063. However, this can only be done when using the admin account. Other accounts cannot use the "fdisk" command from the previous link, even if they have the admin privilege.
Question: Is there a way to reformat the USB drive to fat32 that does not require use of the admin account? Using an admin account works, but it presents a greater security risk compared to using other accounts with the admin privilege.
Note: Admin privileges are being assigned by using web services.
01-09-2018 11:34 AM
Hi cblanchard,
NIAuth groups do not influence base OS-level permissions or privileges, only within NIAuth-enabled services.
An option would be to install and configure the sudo command to allow the lvuser (who is running the LV runtime engine on the RT target) to run the needed commands on the system to format an external USB device.
01-11-2018 09:07 AM
Hi Brad,
Thank you for those details! The steps that we previously discussed are below. However, the computer is not connected to the internet so the sudo package could not be installed. Is there a recommended method for transferring a package to a computer without internet access?
Thanks again!
01-11-2018 11:27 AM
There are other instances of folks in the same situation on this forum, so it is documented. Basically, it comes down to downloading the packages from the feed from a computer that can access the internet and then sneakernetting the package to the controller, directing opkg to install the package by pointing it directly to the package. If the installation fails due to missing dependencies, repeat the above steps for the dependency (or dependencies).
01-11-2018 03:30 PM
There are instructions for installing packages via opkg to Linux RT targets without internet access in the material from the NIWeek C/C++ on NI Linux Real-Time Hands-On session. Specifically, check out "Exercise 4: Interfacing with Existing Code (like OSS) on NI Linux Real-Time (No Internet Access)." starting on page 47 of the exercises PDF.