FTP configuration

Status
Not open for further replies.

Vanyo

Dabbler
Joined
Oct 2, 2011
Messages
45
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
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Check the permissions on '/mnt/Disk1/ftp/'. More than likely user1 doesn't have the needed permissions.
 

Vanyo

Dabbler
Joined
Oct 2, 2011
Messages
45
Does user1 need permissions to '/mnt/Disk1/ftp/' as well? Not only for his home dir?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
He needs at least x permissions for the directory so he can get to his home dir.
 
Status
Not open for further replies.
Top