I have setup FTP from this old guide
Everything works fine except i need to cd to the share "ftp" before i can put anything as ftp user.
my sharefolder is called ftp, so when i login from one of the ftp users i see this
ftp> ls -la
229 Entering Extended Passive Mode (|||14103|)
150 Opening ASCII mode data connection for file list
drwxr-xr-x 2 ftp nogroup 4096 Sep 19 18:16 .
drwxr-xr-x 2 ftp nogroup 4096 Sep 19 18:16 ..
drwxrwsr-x 2 root users 4096 Sep 21 09:46 ftp
Now i need to cd to the ftp directory still to be able to write, i can't write anything where i am now.
So my question is how can i set it in the config so that when i login with ftp i get straight into the writeable ftp directory
EDIT: i found this in man page
The DefaultRoot directive controls the default root directory assigned to a user upon login. If DefaultRoot is set to a directory other than "/", a chroot operation is performed immediately after a client authenticates. This can be used to effectively isolate the client from a portion of the host system filespace. The specified root directory must begin with a / or can be the magic character '~'; meaning that the client is chroot jailed into their home directory.
So i will try to set this, but what is the value then of the vroot in config file is that to set more shares which can be available for the ftp users?