Table of Contents
07 Security
For all following commands it is assumed that the user is logged in as admin
or another user with root privileges.
Resources
-
NI Linux Real-Time Security User Guide
See also the wiki page on Security on RIO Systems for generic tips and info.
admin Password
See generic security tips first. On Linux, a password can also be set via terminal (
passwd
command)SUDO
First, install sudo
opkg update opkg install sudo
Next, setup the proper (limited) permissions for the lvuser user
visudo
This will open the vi editor and check the additions to the sudoers file to make sure that the syntax is correct. Add something like this to the end of the file, use [i] to enter into editing mode, [esc] to exit editor mode, and [:wq] to write the changes and quit.
lvuser ALL= (ALL) ALL
This line means: The
lvuser
user can execute fromALL
terminals, acting asALL
(any) users, and runALL
(any) command.