Hi all,
I want to set up an ftp access to my server. My goal is that the admin user can acces all the user's directories but the users only their home dirs.
I created a dataset (/mnt/Disk1/ftp) and a sub-dataset (/mnt/Disk1/ftp/user1) which will be the ftp user's home dir. The owner is the user1 and the owner group is wheel (the admin user is in the wheel group)
I added an user, which intended to access his ftp home directory only, not the other shares.
user1, primary group - nogroup, auxiliary group: ftp and the home dir is /mnt/Disk1/ftp/user1
Now, there is my problem. In that way, the user is unable to login
notice: unable to use '~/' [resolved to '/mnt/Disk1/ftp/user1/']: Permission denied
chroot to '~/' failed for user 'user1': Operation not permitted
error: unable to set default root directory
If I add the user to group wheel, he can log in, but also can access the parent directories of his home dir.
What have I done wrong?
Thanks
I want to set up an ftp access to my server. My goal is that the admin user can acces all the user's directories but the users only their home dirs.
I created a dataset (/mnt/Disk1/ftp) and a sub-dataset (/mnt/Disk1/ftp/user1) which will be the ftp user's home dir. The owner is the user1 and the owner group is wheel (the admin user is in the wheel group)
I added an user, which intended to access his ftp home directory only, not the other shares.
user1, primary group - nogroup, auxiliary group: ftp and the home dir is /mnt/Disk1/ftp/user1
Now, there is my problem. In that way, the user is unable to login
notice: unable to use '~/' [resolved to '/mnt/Disk1/ftp/user1/']: Permission denied
chroot to '~/' failed for user 'user1': Operation not permitted
error: unable to set default root directory
If I add the user to group wheel, he can log in, but also can access the parent directories of his home dir.
What have I done wrong?
Thanks