Implement proper ACL checks and suid permission

Placeholder, not finished yet.
What does the value `'t'` indicate? I don't understand the meaning.