This file is indexed.

/usr/bin/arduino-add-groups is in arduino 2:1.0.5+dfsg2-4.1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

uid=${PKEXEC_UID:-${SUDO_UID}}

if [[ -z $uid ]]; then
    echo "Could not determine which user to add to the groups."
    exit 2
fi

login=$(perl -e 'print((getpwuid shift)[0])' $uid)

#for group in dialout tty; do
for group in dialout; do
    if ! groups $login | grep -q "\b$group\b"; then
	missing_groups=${missing_groups:+$missing_groups,}$group
    fi
done

if [[ -n $missing_groups ]]; then
    exec usermod -a -G $missing_groups $login
else
    echo "No required groups are missing for this user."
    exit 1
fi