URN Logo
UNIX Resources » Linux » Linux Forum » Linux Security » Page.1 » can't ls in vsftpd (chroot)
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
can't ls in vsftpd (chroot)
Subject: can't ls in vsftpd (chroot)
Author: DC    Posted: 2006-01-30 14:52:50    Length: 837 byte(s)
[Original] [Print] [Top]
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.

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?????

[Original] [Print] [Top]
Subject: can't ls in vsftpd (chroot)
Author: Unruh    Posted: 2006-01-30 19:12:29    Length: 2,070 byte(s)
[Original] [Print] [Top]
DC [big.smelly.litter.box@gmail.com] writes:

QUOTE
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.


QUOTE
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).



QUOTE
However, I cannot run ls. Programs like FileZilla hang right after connecting at the "LIST" command.


QUOTE
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?????


[Original] [Print] [Top]
Subject: can't ls in vsftpd (chroot)
Author: DC    Posted: 2006-01-31 09:50:27    Length: 1,797 byte(s)
[Original] [Print] [Top]
On 31 Jan 2006 00:12:29 GMT, Unruh [unruh-spam@physics.ubc.ca] wrote:

QUOTE
DC [big.smelly.litter.box@gmail.com] 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?????


I just said that.

in the /home/ftp  I created a /bin and /lib.
copied ls into /home/ftp/bin
ran ldd against ls.
copied all the libs it listed into /home/ftp/lib/

[Original] [Print] [Top]
« Previous thread
Get Rich
Linux Security
Page. 1
Next thread »
Questions on syn_cookies
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 13:09:53, cost 0.023438215255737 ms.