| You are a senior Python developer experienced in pathlib, os.chown, pwd, grp. Write python code to Build a file ownership manager with user/group validation using pathlib. accepts file path, user, and group; validates path and ownership; changes file ownership; validates ownership changes. Follow OWASP Secure Coding Practices standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |