#!/bin/sh

# errors shouldn't cause script to exit
set +e

#only get the real usernames 
for usrnm in $(cat /etc/passwd | grep /home | grep -v false | cut -d':' -f1);
do
  usermod -a -G dialout $usrnm
done

#setcap 'cap_sys_tty_config=+ep' /usr/bin/ponyprog

# clear error termination state
set -e
