Hi,
        I am having some trouble to chroot all the users when they ftp.

        Using the standard in.ftpd from netstd package, I created a file
        /etc/ftpchroot with one line: shao.

        But when I ftp as shao, I can log in properly, but "ls" shows up
        nothing.

        I then tried to use wu-ftpd-academ. Changed passwd entry to 
        shao:x:1000:1000:Shao Zhang,,,:/home/shao/./:/bin/bash

        add an entry to /etc/wu-ftpd-academ/ftpaccess:
        guestgroup 1000

        change the entry in /etc/inetd.conf to something like
        /usr/sbin/ftpd -a which will enable ftpaccess for wu-ftp

        With this config, user can still chdir to anywhere. If I change
        it to guestgroup shao, then "ls" shows up nothing again.

        Here is what's happening:

        230 User shao logged in.
        Remote system type is UNIX.
        Using binary mode to transfer files.
        ftp> ls
        200 PORT command successful.
        150 Opening ASCII mode data connection for '/bin/ls'.
        226 Transfer complete.
        ftp> 

        Can anyone please help me? I have got this working before but
        now I forgot.
        
        Thanks.

Shao.

-- 
____________________________________________________________________________
Shao Zhang - Running Debian 2.1  ___ _               _____
Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: [EMAIL PROTECTED]                                                  |___/ 
_____________________________________________________________________________

Reply via email to