FTP connection fails because of nonexisting homedir

Status
Not open for further replies.

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
So i get connection failure "530 Login incorrect".

This is because the user has no homedirectory. If i make a homedirectory it works.

However, i don't wan't that, i want my user to go directly to a dataset (wich has another name).
That don't work.

Also, if i change the users homedirectory to /mnt/vol01/Dataset

It automatically gets changed to: /mnt/vol01/Dataset/username
wtf?

This worked before? :(
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
Oh... well.. crap. Not a huge issue... just a bit annoying.

Thanx!
 

Elo

Contributor
Joined
Mar 11, 2012
Messages
122
I have been working with the same issue and I have found one solution that works (you can look further under the ProFTP How To : http://www.proftpd.org/docs/howto/
It is possible to instruct the FTP system to force a specific group of users to end up in a specified directory DIFERENT form their home directory (you must leave the Always chroot option ticked in the FTP service setup).

The following can be put into Auxiliary parameters in FTP setup (Example):

DefaultRoot /mnt/xxx/yyy groupaaa

This forces the users in group groupaaa to end up in directory /mnt/xxx/yyy when login on to the ftp server.

If you have left Always chroot ticked then these users will not be allowed to move out of this directory structure.

I do still struggle with restricting the various users permissions. (I want some of them to have only read permissions).

I hope this helps you!
 

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
All great tips are welcome! Thanx :)
 
Status
Not open for further replies.
Top