#!/bin/sh
awk 'BEGIN { FS=":" } $3 >= 500 { print $1 }' /etc/passwd > /etc/restricted_users

# Just for paranoia :)
chmod 0644 /etc/restricted_users
chown root.root /etc/restricted_users

