Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Beta Testers: Permissions on the RoboRio (http://www.chiefdelphi.com/forums/showthread.php?t=131141)

NRLeuenb 15-11-2014 10:22

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?

NotInControl 15-11-2014 11:59

Re: Beta Testers: Permissions on the RoboRio
 
Quote:

Originally Posted by NRLeuenb (Post 1408706)
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.

AustinSchuh 15-11-2014 12:56

Re: Beta Testers: Permissions on the RoboRio
 
Quote:

Originally Posted by NotInControl (Post 1408712)
The only folder which I believe admin cant write too is the /proc folder, but I will have to check that later

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.

x86_4819 15-11-2014 13:33

Re: Beta Testers: Permissions on the RoboRio
 
On a side note, what init system does it run?

NRLeuenb 15-11-2014 13:55

Re: Beta Testers: Permissions on the RoboRio
 
Thanks to all who responded, that was very helpful!

NotInControl 16-11-2014 13:59

Re: Beta Testers: Permissions on the RoboRio
 
Quote:

Originally Posted by x86_4819 (Post 1408719)
On a side note, what init system does it run?

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

Regards,
Kevin

x86_4819 16-11-2014 15:01

Re: Beta Testers: Permissions on the RoboRio
 
Quote:

Originally Posted by NotInControl (Post 1408822)
Systemd, I believe that answers your question, correct?:cool:

Regards,
Kevin

Yes, it does. Thanks!


All times are GMT -5. The time now is 02:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi