#!/bin/sh

. /etc/control.d/functions

BINARY=/usr/sbin/nethogs

new_fmode public 4711 root root
new_fmode netadmin 4710 root netadmin
new_fmode restricted 700 root root

new_help public "Everybody can execute nethogs gainig privilagas esaclation"
new_help netadmin "Only members of netadmin group can execute nethogs with privilagas esaclation"
new_help restricted "Only root can execute nethogs"

control_fmode "$BINARY" "$*" || exit 1
