[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ftp trouble - cannot chroot



On Thu, Aug 26, 1999 at 11:40:20PM -0500, Brad wrote
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> On Thu, 26 Aug 1999, John Pearson wrote:
> 
> > I believe that what has happened to you is that you are operating in a
> > chroot'd environment and that in that environment there is no /bin/ls to
> > run, so no directory appears.  Try cd'ing to ftp's home directory and
> > copying bin/* to /home/shao/bin/ and lib/* to /home/shao/lib/.  This
> > isn't necessary with proftpd because it has a built-in 'ls'.
> 
> Why copy bin/* and lib/*, instead of only the programs and libraries
> needed. For example,

The suggestion was to copy bin/* and lib/*, after cd'ing to ftp's home
directory.  Those relative paths should only contain binaries used by ftpd
for providing services to anonymous users; I didn't mean he should copy the
absolute paths /bin/* and /lib/*; if he feels his users deserve a chroot'd
ftp environment, then that would probably be a very bad idea.

If he is doing this because his users aren't smart enough to find their
home directory (or even if he isn't), he may also want to ensure that 
they can't delete the binaries he copies there.  As previously stated,
using proftpd may simplify things considerably.


John P.
-- 
huiac@camtech.net.au
john@huiac.apana.org.au
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark


Reply to: