Thu 28 Dec 2006
Using Your FTP Server $ ftp 192.168.0.99 Connected to 192.168.0.99 (192.168.0.99). 220 (vsFTPd 1.1.3) Name (192.168.0.99:none): anonymous 331 Please specify the password. Password: 230 Login successful. Have fun. Remote system type is UNIX. Using binary mode to transfer files. 2. Now, we can start to examine the contents of the FTP site that are available to users with anonymous access. For example, here we’ll use the ls command to examine the contents of the FTP root directory (which happens to be the directory /var/ftp on the server): ftp>ls 227 Entering Passive Mode (192,168,0,99,69,34) 150 Here comes the directory listing. drwxr-r-x 2 0 0 4096 Feb 28 13:40 pub 226 Directory send OK. This shows that the root directory contains just one subdirectory, called pub. Now we’ll use cd to change to this directory, and we’ll list its contents: ftp> cd pub 250 Directory successfully changed. ftp> ls -al 227 Entering Passive Mode (192, 168, 0, 99, 56, 125) 150 Here comes the directory listing. drwxr-xr–x 2 0 0 4096 Feb 28 13:40 . drwxr-xr-x 3 0 0 4096 Feb 27 19:15 .. -rw-r–r– 1 0 0 22 Feb 28 13:30 test.txt 226 Directory send OK. 3. Now, we’ll attempt to download the test.txt file we’ve just located. To do this, we’ll use the get command: ftp> get test.txt local: test.txt remote: test.txt 227 Entering Passive Mode (192, 168, 0, 99, 98, 207) 150 Opening BINARY mode data connection for test.txt (22 bytes). 226 File send OK. When the file is successfully downloaded, you should find it in your present working directory. 4. Finally, we’ll end the session: ftp> bye 221 Goodbye. $ For more information about anonymous ftp, please refer to RFC 1635, which can be found at ftp://ftp.rfc-editor.org/in-notes/rfc1635.txt. Configuring an Anonymous FTP Server for File Upload In much the same way, anonymous FTP users can write only to the directories that we allow them to write to. By default, vsftpd does not allow users to upload to the FTP server at all; we must first configure the server to allow anonymous users write access to some directory. 282
Hint: If you are looking for very good and affordable webspace to host and run your tomcat hosting application check Sandzak.com tomcat web hosting provider