Locked in FTP directory

Status
Not open for further replies.

biophemoc

Cadet
Joined
Dec 25, 2015
Messages
7
Hey,
I've installed FreeNAS on my new machine, but it seems as if nothing is working. I reinstalled it already, but neither does CIFS nor FTP work properly. CIFS is just not working at all (vfs thingy that several people seem do have), but that's a different story.
My main problem is, that I can connect via FTP, but I end up in a directory containing files named ".login", ".profile". But I don't know where this directory is. I changed the ftp root in the ftp config, I changed the user home directory, but it is impossible to go to my zfs pool ("/mnt/media"), I always end up in the same folder.
At the beginning I could upload files to this folder (which now stopped working), but these transfers suffered from severe "zfs stalls".
How can I change the ftp folder?

Cheers,
biophemoc

Edit: Ok, I fixed it. The tick on "chroot always active" was checked. And I needed about an hour to figure that out. Well, maybe someone stumples upon this and finds it helpful. :D For some reason the zfs lags are gone in the right directory…
 
Last edited:

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Chroot by default is enabled, you need to either disable it to allow users outside of their home directory, or add the FTP user to the 'wheel' group.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Make sure that box isn't accessible to the internet or it will be owned in a matter of minutes. By removing chroot, you have given an extremely unsecured protocol (ftp) full access to your server.
 

biophemoc

Cadet
Joined
Dec 25, 2015
Messages
7
Thanks for the hint, it definitely is not accessible from the internet. I would prefer some other protocol, but CIFS is slow as hell and NFS isn't much faster. FTP is alright (70MB/s), but I'm not very happy with it. I'll have to figure out where the problem is.
 
Status
Not open for further replies.
Top