Difference between revisions of "Execute as a root"
From youBot wiki
Line 1: | Line 1: | ||
− | The youBot Driver needs access to the raw ethernet device | + | The youBot Driver needs access to the raw ethernet device, which Under Linux a normal user does not have. You can grand this capability to a program by the tool setcap. |
To provide a program with raw access to a ethernet device use: | 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, which Under Linux a normal user does not have. 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