Here's what I've been trying to do:
- Create a zfs pool that can be accessed through sftp
- Be able to read and write files in the zfs pool through sftp (remotely)
- Create a user who can read/write files in the zfs pool but cannot access any other files on the computer
Here are the two "tutorials" I have been referring to.
- How to Setup Chroot SFTP in Linux (Allow Only SFTP, not SSH)
- How to setup a restricted SFTP server on Ubuntu?
So far, I've gotten the zfs pool set up and I can access it. However, when I try to sftp in using the chroot[ed] account, I can view files but I cannot modify or create new files.
My question is: How do I grant the chrooted user permission to read and write files in the zfs pool?
Interestingly, I can't write to the zfs pool when logged into the computer locally unless I open it as root.