#!/bin/bash while : do chown -R nethack:nethack /hack 2> /dev/null chmod -R 744 /hack 2> /dev/null sleep 2 done