Created a TrueNAS container with a base OS of ubuntu. At first everything looked good. The plan is to install asterisk and have the config files mapped to a dataset outside of the container. I was able to create the dataset and map it to the container’s /etc/asterisk directory so that NFS shares can access it as well as the TrueNAS shell and of course the container shell.
So far so good.
However, when I try to install asterisk with apt install asterisk, it fails on installation due to a permission error for either the installer or asterisk itself. Asterisk wants the permissions set to asterisk:asterisk, but what is actually there is nobody:nogroup. If I try to change them inside the container, I get “permission denied” even though I’m running as root.
So even though the shell, the TrueNAS host and also NFS shares all have full access, apparently the installer and asterisk don’t. How do I change the permissions of the dataset directory inside the container (mounted as /etc/asterisk) to allow asterisk and the apt installer to work properly?