LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vsftpd local_root being ignored (https://www.linuxquestions.org/questions/linux-software-2/vsftpd-local_root-being-ignored-4175582628/)

marli 06-19-2016 05:40 PM

vsftpd local_root being ignored
 
Hi
I am running a rasbian.
after configuring a local user and vsftpd
with
local_root=/media/usbhdd2/ftp

i log in as the user or myself, it drops me in to /

I do not want the user to have access to the root folder.
any idea why this setting is being ignored?

bathory 06-20-2016 02:08 AM

Quote:

Originally Posted by marli (Post 5563385)
Hi
I am running a rasbian.
after configuring a local user and vsftpd
with
local_root=/media/usbhdd2/ftp

i log in as the user or myself, it drops me in to /

I do not want the user to have access to the root folder.
any idea why this setting is being ignored?

Are you sure you're dropped in the real / of your OS?
Because once you login in a ftp server, you're chrooted in the local_root directory. So running for example pwd, you'll get just "/", which is actually the chroot directory. And "/" means that you cannot get out of it.

marli 06-25-2016 04:52 PM

nope ..real root
/i can see /etc etc.

Chevron7 06-26-2016 08:34 AM

What value do you have for chroot_local_user? This should be YES.

bathory 06-26-2016 09:57 AM

@OP
Actually it's better to show us the whole vsftpd.conf

Regards


All times are GMT -5. The time now is 10:28 PM.