Robot program running as root? #36
Closed
jwbonner
started this conversation in
SystemCore Software
Replies: 1 comment
-
See #49 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It looks like the robot service currently runs the user program as root. Is there a good reason to do this instead of running as the
systemcore
user (with appropriate permissions for any resources it needs to access)? It seems like running as root increases the risk that a misbehaving user program could cause major issues on the device (for example, suppose a user program with an incorrect path configured somewhere starts inadvertently writing/overwriting files in a system directory). I assumed that this issue was the reason for running the user program aslvuser
on the RIO.One related issue regarding permissions is that it looks like
systemcore
doesn't have permission to write to USB drives with the current auto-mounting scheme. Obviously if the user program ran as that user it would need to be configured with write access to USB drives.Beta Was this translation helpful? Give feedback.
All reactions