Hello, Are you sure you are in the 'right' directory? Copy a file to your ./res/admin and check if it is visible from the FTP client.
2008/8/19 Erik Morton <[EMAIL PROTECTED]> > Hello. I'm very excited about the ftpserver, however I'm having problems > getting it working properly on OSX. I have a user configured like so: > > +--------+--------------+---------------+------------+-----------------+----------+------------+--------------+----------------+---------------+ > | userid | userpassword | homedirectory | enableflag | writepermission | > idletime | uploadrate | downloadrate | maxloginnumber | maxloginperip | > > +--------+--------------+---------------+------------+-----------------+----------+------------+--------------+----------------+---------------+ > | admin | admin | ./res/admin | 1 | 1 | > 10 | 10 | 10 | 10 | 10 | > > +--------+--------------+---------------+------------+-----------------+----------+------------+--------------+----------------+---------------+ > > I created a file called ./res/admin, which is chmod 777 > > And I am starting the server like so: > sudo ./bin/ftpd.sh /Users/me/java/ftp/res/conf/ftpd-full.xml > > The configuration file doesn't explicitly define any listeners. > > When I connect to the server I can't seem to ever put a file. PWD tells me > that the current directory is "/". I'm not sure if I'm supposed to be put > directly into ./res/admin or not. > My session is: > $ open localhost > $ admin > $ admin > $ pwd > $ put testftp.txt > $ bye > > The log out put is below. Any help would be greatly appreciated. > > [ INFO] 2008-08-19 17:13:26,478 [] [0:0:0:0:0:0:0:1%0] RECEIVED: USER ADMIN > [ INFO] 2008-08-19 17:13:26,481 [admin] [0:0:0:0:0:0:0:1%0] SELECT userid, > userpassword, homedirectory, > enableflag, writepermission, idletime, uploadrate, > downloadrate,maxloginnumber,maxloginperip FROM > FTP_USER WHERE userid = 'admin' > [ INFO] 2008-08-19 17:13:26,496 [admin] [0:0:0:0:0:0:0:1%0] SENT: 331 User > name okay, need password for admin. > > [ INFO] 2008-08-19 17:13:28,732 [admin] [0:0:0:0:0:0:0:1%0] RECEIVED: PASS > ***** > [ INFO] 2008-08-19 17:13:28,732 [admin] [0:0:0:0:0:0:0:1%0] SELECT userid > from FTP_USER WHERE userid='admin' AND > userpassword='admin' > [ INFO] 2008-08-19 17:13:28,733 [admin] [0:0:0:0:0:0:0:1%0] SELECT userid, > userpassword, homedirectory, > enableflag, writepermission, idletime, uploadrate, > downloadrate,maxloginnumber,maxloginperip FROM > FTP_USER WHERE userid = 'admin' > [ INFO] 2008-08-19 17:13:28,740 [admin] [0:0:0:0:0:0:0:1%0] Login success - > admin > [ INFO] 2008-08-19 17:13:28,741 [admin] [0:0:0:0:0:0:0:1%0] SENT: 230 User > logged in, proceed. > > [ INFO] 2008-08-19 17:13:28,741 [admin] [0:0:0:0:0:0:0:1%0] RECEIVED: SYST > [ INFO] 2008-08-19 17:13:28,742 [admin] [0:0:0:0:0:0:0:1%0] SENT: 215 UNIX > Type: Apache FtpServer > > [ INFO] 2008-08-19 17:13:28,743 [admin] [0:0:0:0:0:0:0:1%0] RECEIVED: FEAT > [ INFO] 2008-08-19 17:13:28,745 [admin] [0:0:0:0:0:0:0:1%0] SENT: > 211-Extensions supported > SIZE > MDTM > REST STREAM > LANG en;zh-tw;ja;is > MLST Size;Modify;Type;Perm > AUTH SSL > AUTH TLS > MODE Z > UTF8 > TVFS > MD5 > MMD5 > 211 End > > [ INFO] 2008-08-19 17:13:28,746 [admin] [0:0:0:0:0:0:0:1%0] RECEIVED: PWD > [ INFO] 2008-08-19 17:13:28,748 [admin] [0:0:0:0:0:0:0:1%0] SENT: 257 "/" > is current directory. > > [ INFO] 2008-08-19 17:13:38,397 [admin] [0:0:0:0:0:0:0:1%0] RECEIVED: EPSV > [DEBUG] 2008-08-19 17:13:38,402 [admin] [0:0:0:0:0:0:0:1%0] Initiating > passive data connection > [DEBUG] 2008-08-19 17:13:38,403 [admin] [0:0:0:0:0:0:0:1%0] Opening passive > data connection on address "/0:0:0:0:0:0:0:1%0" and port 0 > [DEBUG] 2008-08-19 17:13:38,403 [admin] [0:0:0:0:0:0:0:1%0] Passive data > connection created on address "/0:0:0:0:0:0:0:1%0" and port 0 > [ INFO] 2008-08-19 17:13:38,404 [admin] [0:0:0:0:0:0:0:1%0] SENT: 229 > Entering Passive Mode (|||57094|) > > [ INFO] 2008-08-19 17:13:38,405 [admin] [0:0:0:0:0:0:0:1%0] RECEIVED: STOR > TESTFTP.TXT > [ INFO] 2008-08-19 17:13:38,407 [admin] [0:0:0:0:0:0:0:1%0] SENT: 550 > /testftp.txt: Permission denied. > >
