Difference between revisions of "Execute as a root"

From youBot wiki
Jump to: navigation, search
(Created page with "oops")
 
Line 1: Line 1:
oops
+
The youBot Driver needs access to the raw ethernet device. Under Linux a normal user does not have this access. You can grand this capability to a program by the tool setcap.
 +
 
 +
To provide a program with raw access to a ethernet device use: (replace the ./YouBot_KeyboardRemoteControl with your program.)
 +
<pre> sudo setcap cap_net_raw+ep ./path_to_your_program
 +
</pre>

Revision as of 17:06, 5 February 2015

The youBot Driver needs access to the raw ethernet device. Under Linux a normal user does not have this access. You can grand this capability to a program by the tool setcap.

To provide a program with raw access to a ethernet device use: (replace the ./YouBot_KeyboardRemoteControl with your program.)

 sudo setcap cap_net_raw+ep ./path_to_your_program