Advertisement
Guest User

Untitled

a guest
Dec 28th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. |- home_dir
  2. |- dir1
  3. |- dir2
  4. |- dir3
  5. |- dir3
  6. |- dir4
  7. |- ...
  8.  
  9. log_ftp_protocol=YES
  10. anonymous_enable=NO
  11.  
  12. userlist_enable=YES
  13. userlist_file=/etc/vsftpd.user_list
  14. userlist_deny=NO
  15.  
  16. pasv_addr_resolve=YES
  17. pasv_address=mydomain.com
  18. pasv_enable=Yes
  19. pasv_min_port=40020
  20. pasv_max_port=40030
  21.  
  22. local_enable=YES
  23.  
  24. write_enable=YES
  25.  
  26. local_umask=002
  27.  
  28. dirmessage_enable=YES
  29.  
  30. xferlog_enable=YES
  31.  
  32. connect_from_port_20=YES
  33.  
  34.  
  35. chown_uploads=YES
  36. chown_username=myuser
  37.  
  38.  
  39. ftpd_banner=Welcome.
  40.  
  41. chroot_local_user=YES
  42.  
  43. Wed Dec 28 13:55:06 2016 [pid 2] CONNECT: Client "<client_ip>"
  44. Wed Dec 28 13:55:06 2016 [pid 2] FTP response: Client "<client_ip>", "220 Welcome."
  45. Wed Dec 28 13:55:07 2016 [pid 2] FTP command: Client "<client_ip>", "USER myuser"
  46. Wed Dec 28 13:55:07 2016 [pid 2] [myuser] FTP response: Client "<client_ip>", "331 Please specify the password."
  47. Wed Dec 28 13:55:07 2016 [pid 2] [myuser] FTP command: Client "<client_ip>", "PASS <password>"
  48. Wed Dec 28 13:55:07 2016 [pid 1] [myuser] OK LOGIN: Client "<client_ip>"
  49. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "230 Login successful."
  50. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "OPTS UTF8 ON"
  51. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "200 Always in UTF8 mode."
  52. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "PWD"
  53. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "257 "/" is the current directory"
  54. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "TYPE I"
  55. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "200 Switching to Binary mode."
  56. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "PASV"
  57. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "227 Entering Passive Mode (<server_ip>,156,86)."
  58. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "LIST"
  59. Wed Dec 28 13:55:07 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "150 Here comes the directory listing."
  60. Wed Dec 28 13:55:08 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "226 Directory send OK."
  61. Wed Dec 28 13:55:09 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "CWD /dir1"
  62. Wed Dec 28 13:55:09 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "250 Directory successfully changed."
  63. Wed Dec 28 13:55:09 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "PASV"
  64. Wed Dec 28 13:55:09 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "227 Entering Passive Mode (<server_ip>,156,92)."
  65. Wed Dec 28 13:55:09 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "LIST"
  66. Wed Dec 28 13:55:09 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "150 Here comes the directory listing."
  67. Wed Dec 28 13:55:09 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "226 Directory send OK."
  68. Wed Dec 28 13:55:11 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "CWD /dir1/dir2"
  69. Wed Dec 28 13:55:11 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "250 Directory successfully changed."
  70. Wed Dec 28 13:55:11 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "PASV"
  71. Wed Dec 28 13:55:11 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "227 Entering Passive Mode (<server_ip>,156,87)."
  72. Wed Dec 28 13:55:11 2016 [pid 3] [myuser] FTP command: Client "<client_ip>", "LIST"
  73. Wed Dec 28 13:55:11 2016 [pid 3] [myuser] FTP response: Client "<client_ip>", "150 Here comes the directory listing."
  74.  
  75. $ ftp -n 127.0.0.1
  76.  
  77. Connected to 127.0.0.1.
  78. 220 Welcome.
  79. ftp> user myuser
  80. 331 Please specify the password.
  81. Password:
  82. 230 Login successful.
  83. ftp> ls
  84. 200 PORT command successful. Consider using PASV.
  85. 150 Here comes the directory listing.
  86. drwxr-xr-x 4 1000 1000 4096 Dec 28 13:27 dir1
  87. 226 Directory send OK.
  88. ftp> cd dir1
  89. 250 Directory successfully changed.
  90. ftp> ls
  91. 200 PORT command successful. Consider using PASV.
  92. 150 Here comes the directory listing.
  93. -rwxr-xr-x 1 1000 1000 469504 Dec 23 03:03 file_1
  94. -rw-r--r-- 1 1000 1000 186 Feb 19 2016 file_2
  95. -rw-r--r-- 1 1000 1000 121856 Dec 23 00:16 file_3
  96. -rw-r--r-- 1 1000 1000 118272 Feb 12 2016 file_4
  97. -rw-r--r-- 1 1000 1000 88232 Mar 22 2016 file_5
  98. -rw-r--r-- 1 1000 1000 64680 Mar 22 2016 file_6
  99. -rw-r--r-- 1 1000 1000 101032 Mar 22 2016 file_7
  100. -rw-r--r-- 1 1000 1000 6144 Mar 22 2016 file_8
  101. -rw-r--r-- 1 1000 1000 899584 Mar 22 2016 file_9
  102. drwxrwxr-x 42 1000 1000 4096 Dec 28 11:38 dir2
  103. 226 Directory send OK.
  104. ftp> cd dir2
  105. 250 Directory successfully changed.
  106. ftp> pwd
  107. 257 "/dir1/dir2" is the current directory
  108. ftp> ls
  109. 200 PORT command successful. Consider using PASV.
  110. 150 Here comes the directory listing.
  111. 421 Service not available, remote server has closed connection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement