Beta Testers: Permissions on the RoboRio

Beta Test Teams:

Is it possible to view/read anything in the /dev/ folder once you ssh to the robot? Or do you have to be a specific user? We don’t want to write, just read. And are we prevented from running processes external to the main robot process?

You have full access to the filesystem through ssh. The user created by NI is “admin” which has admin access to the file system

The admin user has full read/write to the dev directory. You can also make your own users as well.

First and NI do not lock down the file system at all.

You can also execute your own processes, and terminate any processes you wish - obviously that comes with the cautionary of things to ensure u dont terminate or block the robot code.

The only folder which I believe admin cant write too is the /proc folder, but I will have to check that later

Again this has been our experience with the Beta hardware, and FIRST has the right to make changes for the actual production hardware, but I doubt FIRST or NI will change this in the production system because its so close to kick off, so its a good bet that the released version will also have full root access to the filesystem.

You shouldn’t be able to write to /proc… That’s a proc file system. There might be a couple files there which are writable, but in general, it should be read only.

As far as I have been able to tell, admin is root, which means that you have free reign over the box.

We are running our robot code as a set of ~10 processes communicating over shared memory IPC on the roboRIO. Works flawlessly.

On a side note, what init system does it run?

Thanks to all who responded, that was very helpful!

Systemd, I believe that answers your question, correct?:cool:

Regards,
Kevin

Yes, it does. Thanks!