chown (System Call) (C)Read file content (with files and permissions), split lines and assign permissions (Bash)