Difference between revisions of "Execute as a root"

From youBot wiki
Jump to: navigation, search
Line 1: Line 1:
 
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.  
 
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.)
+
To provide a program with raw access to a ethernet device use:  
 
<pre> sudo setcap cap_net_raw+ep ./path_to_your_program
 
<pre> sudo setcap cap_net_raw+ep ./path_to_your_program
 
</pre>
 
</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:

 sudo setcap cap_net_raw+ep ./path_to_your_program