diff --git a/templates/job-start.em b/templates/job-start.em index bfaeb60..d0ca6cf 100644 --- a/templates/job-start.em +++ b/templates/job-start.em @@ -127,7 +127,7 @@ if [ "$?" != "0" ]; then fi # Punch it. -setpriv --reuid @(user) ros2 launch $LAUNCH_FILENAME @(roslaunch_wait?'--wait ')& +setpriv --reuid @(user) --regid @(user) --init-groups ros2 launch $LAUNCH_FILENAME @(roslaunch_wait?'--wait ')& PID=$! log info "@(name): Started ros2 launch as background process, PID $PID, ROS_LOG_DIR=$ROS_LOG_DIR"