'Best way for a user within a BSD jail to have full access to a particular user's files on the hosting system

This happens to be a TrueNAS (BSD) system. The system itself has an id of pedz with UID of 1000. (I'll call him Gpedz). I created a jail so I could write an application and run it safely on the NAS and created a user of pedz within the jail which was given a UID of 1002. I'll call him Jpedz.

The application will be running as Jpedz but will need access to the files owned Gpedz including the ability to remove files.

I could edit the /etc/passwd file in the jail and make the Jpedz UID 1000 and I bet that would solve my problem but I'm wondering if there is a more accepted way to solve this issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source