Fixed permission-denied

Actually denies permission now.