Skip to content

Instantly share code, notes, and snippets.

@ahoarau
Created June 17, 2015 13:54
Show Gist options
  • Save ahoarau/85e28c9b3b0da9158762 to your computer and use it in GitHub Desktop.
Save ahoarau/85e28c9b3b0da9158762 to your computer and use it in GitHub Desktop.
Allow non-root RTNet Users
Add the user to the xenomai group :
```bash
user -a -G xenomai student
```
Remove sudo passwd for rtnet operations :
```
sudo visudo
```
```
xenomai ALL=(root) NOPASSWD:/sbin/insmod
xenomai ALL=(root) NOPASSWD:/sbin/rmmod
xenomai ALL=(root) NOPASSWD:/sbin/modprobe
xenomai ALL=(root) NOPASSWD:/usr/bin/service
xenomai ALL=(root) NOPASSWD:/usr/sbin/service
xenomai ALL=(root) NOPASSWD:/usr/local/rtnet/sbin/rtcfg
xenomai ALL=(root) NOPASSWD:/usr/local/rtnet/sbin/rtifconfig
xenomai ALL=(root) NOPASSWD:/usr/local/rtnet/sbin/rtiwconfig
xenomai ALL=(root) NOPASSWD:/usr/local/rtnet/sbin/rtnet
xenomai ALL=(root) NOPASSWD:/usr/local/rtnet/sbin/rtping
xenomai ALL=(root) NOPASSWD:/usr/local/rtnet/sbin/rtroute
xenomai ALL=(root) NOPASSWD:/usr/local/rtnet/sbin/tdmacfg
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment