diff --git a/net/bandwidth.sh b/net/bandwidth.sh index 7a62b8813395071a5f52db6c34d0fbc4d39b800e..21190e1535fd01e8d1e69a938a4599d5c0985ecb 100755 --- a/net/bandwidth.sh +++ b/net/bandwidth.sh @@ -61,8 +61,9 @@ PREFIX="$(dirname $(readlink -f $0))" PROJECT=$PREFIX/../scripts/collect/project/source.int # Verify if this is not an UCA Classmate, UCA Server nor Projector ProInfo. If -# it is, do not collect network data and exit -if test "$(bash $PROJECT)" != "0"; then +# it is, do not collect network data and exit. Also exit if the user is not in +# the sudoers(1) +if test "$(bash $PROJECT)" != "0" || ! sudo -v &> /dev/null; then exit 0 fi