Prevent privilege escalation, closes #41