Spark
Cadet
- Joined
- Jul 24, 2012
- Messages
- 5
Hi everyone!
I've been spending hours to find how to set up a shared folder using chroot.
As mentioned on the freeness documentation, I created a ZFS dataset for each user requiring SFTP access.
The first one is /mnt/nemesis/Laurent
The second one is /mnt/nemesis/Damien
etc etc…
I want theses users to be able to reach the path /mnt/nemesis/Videos from /mnt/nemesis/Laurent/share/videos (first user) and /mnt/nemesis/Damien/share/videos (second user). But /mnt/nemesis/Videos is outside of the two jails.
So I tried to create a hard link for each user using the commands:
mount_nullfs /mnt/nemesis/Videos/ /mnt/nemesis/Laurent/share/videos/
mount_nullfs /mnt/nemesis/Videos/ /mnt/nemesis/Damien/share/videos/
It works perfectly but only until I reboot the freenas server.
So I typed in the command mount -uw /
I added the followings line to /etc/fstab:
/mnt/nemesis/Videos/ /mnt/nemesis/Laurent/share/videos/ nullfs rw 0 0
/mnt/nemesis/Videos/ /mnt/nemesis/Damien/share/videos/ nullfs rw 0 0
Then, I typed in the command mount -ur / and rebooted the freeness server but it didn't work. The fstab change wasn't saved.
Finally, I found an explanation on a forum: the fstab is generated by the system after each reboot.
Could you help me, pleaseeee? This issue drives me crazy :(
I've been spending hours to find how to set up a shared folder using chroot.
As mentioned on the freeness documentation, I created a ZFS dataset for each user requiring SFTP access.
The first one is /mnt/nemesis/Laurent
The second one is /mnt/nemesis/Damien
etc etc…
I want theses users to be able to reach the path /mnt/nemesis/Videos from /mnt/nemesis/Laurent/share/videos (first user) and /mnt/nemesis/Damien/share/videos (second user). But /mnt/nemesis/Videos is outside of the two jails.
So I tried to create a hard link for each user using the commands:
mount_nullfs /mnt/nemesis/Videos/ /mnt/nemesis/Laurent/share/videos/
mount_nullfs /mnt/nemesis/Videos/ /mnt/nemesis/Damien/share/videos/
It works perfectly but only until I reboot the freenas server.
So I typed in the command mount -uw /
I added the followings line to /etc/fstab:
/mnt/nemesis/Videos/ /mnt/nemesis/Laurent/share/videos/ nullfs rw 0 0
/mnt/nemesis/Videos/ /mnt/nemesis/Damien/share/videos/ nullfs rw 0 0
Then, I typed in the command mount -ur / and rebooted the freeness server but it didn't work. The fstab change wasn't saved.
Finally, I found an explanation on a forum: the fstab is generated by the system after each reboot.
Could you help me, pleaseeee? This issue drives me crazy :(