Re: can't ls in vsftpd (chroot)
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: 31 Jan 2006 00:12:29 GMT
DC <big.smelly.litter.box@xxxxxxxxx> writes:
>I have vsftpd installed on RHEL3.
>I had to build it from a Fedora Core 4 SRPM as Redhat's one didn't have SSL support.
>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.
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).
>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?????
.
- Follow-Ups:
- Re: can't ls in vsftpd (chroot)
- From: DC
- Re: can't ls in vsftpd (chroot)
- References:
- can't ls in vsftpd (chroot)
- From: DC
- can't ls in vsftpd (chroot)
- Prev by Date: can't ls in vsftpd (chroot)
- Next by Date: POSITIF - Security Framework
- Previous by thread: can't ls in vsftpd (chroot)
- Next by thread: Re: can't ls in vsftpd (chroot)
- Index(es):
Relevant Pages
|
|