A compromise could be to add a check if already running with super user rights to the scripts, something like
```# if not run as root, use sudo
if [[ $EUID -ne 0 ]]; then
SUDO="sudo"
else
SUDO=""
fi
$SUDO command
```
---
[Visit Topic](
https://discourse.ros.org/t/sudo-usage-in-rosdistro-packages/7188/5) or reply to this email to respond.
If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
ros-users@lists.ros.org
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <
http://lists.ros.org/mailman//options/ros-users>