Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- can't ls in vsftpd (chroot)
January 30, 2006, 7:52 pm
rate this thread
I had to build it from a Fedora Core 4 SRPM as Redhat's one didn't have SSL
Anyway, I have it installed, and have one username setup.
When they log in they are chrooted to a directory that I made for them.
Transfers work fine both ways.
However, I cannot run ls. Programs like FileZilla hang right after connecting at
the "LIST" command.
In the chroot directory i made a bin and lib directory.
I copied ls into bin, and ran ldd to find what libraries i need.
From a shell i chrooted to the directory and i can run ls with no problem.
From a shell I can su to the ftpuser, cd to the ~ftpuser/bin directory and run
ls with no problem.
From FTP,I still cannot run ls. Any ideas?????
Re: can't ls in vsftpd (chroot)
chroot means chroot. NOTHING is available from outside the change root jail
Thus ls, and all libraries needed by ls MUST be in that chroot jail.
Eg, your directory is /home/ftp, then you MUST have a /home/ftp/bin
directory which contains ls, and MUST have a /home/ftp/lib directory which
contains ALL of the libraries required by ls (or whatever other command you
might want to use).
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum