How to give jail user access to datasets?

mikael

Dabbler
Joined
Feb 9, 2018
Messages
18
I created a jail in order to be able to run borg backup. I can access datasets in /mnt/ if I use the root user, but having created a user by following this guide, it can’t access these datasets. How should I set permissions so it can access all storage in /mnt/?
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
the UID must match.
mediauser:1500 inside the jail and mediauser:1500 outside the jail.
then you give mediauser access to the dataset, and give the jail access to the dataset.
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
mediauser is just a placeholder. it can be whatever username, it just has to match inside and outside in each jail you want to use.
once they match, then they are the same user, and there isnt really an inside or outside.
 
Top