VSFTPD, same user account, different behavior -
i set vsftpd on centos 6.9 machine.
username: mp100d home directory: /home/mp100d/ftp
in vsftpd.conf
, set local_root
as:
local_root=/home/mp100d/ftp
and created tow subdirectories: /home/mp100d/ftp/inbox , /home/mp100d/ftp/outbox, , assigned rwx right:
chmod -r 777 /home/mp100d/ftp
first, used ftp in cmd.exe test ftp, , looks fine, switch different directories, here vsftpd.log
connect: client "172.18.0.210" ftp response: client "172.18.0.210", "220 (vsftpd 2.2.2)" ftp command: client "172.18.0.210", "opts utf8 on" ftp response: client "172.18.0.210", "200 in utf8 mode." ftp command: client "172.18.0.210", "user mp100d" [mp100d] ftp response: client "172.18.0.210", "331 please specify password." [mp100d] ftp command: client "172.18.0.210", "pass <password>" [mp100d] ok login: client "172.18.0.210" [mp100d] ftp response: "230 login successful." [mp100d] ftp command: "port 172,18,0,210,35,33" [mp100d] ftp response: "200 port command successful. consider using pasv." [mp100d] ftp command: "list" [mp100d] ftp response: "150 here comes directory listing." [mp100d] ftp response: "226 directory send ok." [mp100d] ftp command: "cwd inbox" [mp100d] ftp response: "250 directory changed." [mp100d] ftp command: "cwd .." [mp100d] ftp response: "250 directory changed." [mp100d] ftp command: "cwd outbox" [mp100d] ftp response: "250 directory changed." [mp100d] ftp command: "quit" [mp100d] ftp response: "221 goodbye."
and next, used device, black-box, embedded ftp client. time, when tried access inbox , outbox, it's denied. test device access home directory, not 2 subdirs.
connect: client "172.18.0.220” ftp response: client "172.18.0.220”, "220 (vsftpd 2.2.2)" ftp command: client "172.18.0.220”, "user mp100d" [mp100d] ftp response: client "172.18.0.220”, "331 please specify password." [mp100d] ftp command: client "172.18.0.220”, "pass <password>" [mp100d] ok login: client "172.18.0.220” [mp100d] ftp response: "230 login successful." [mp100d] ftp command: "type i" [mp100d] ftp response: "200 switching binary mode." [mp100d] ftp command: "cwd /" [mp100d] ftp response: "250 directory changed." [mp100d] ftp command: "cwd outbox" [mp100d] ftp response: "550 failed change directory." [mp100d] ftp command: "cwd /" [mp100d] ftp response: "250 directory changed." [mp100d] ftp command: "cwd inbox" [mp100d] ftp response: "550 failed change directory." [mp100d] ftp command: "cwd /" [mp100d] ftp response: "250 directory changed." [mp100d] ftp command: "cwd inbox" [mp100d] ftp response: "550 failed change directory." [mp100d] ftp command: "cwd /" [mp100d] ftp response: "250 directory changed." [mp100d] ftp command: "cwd outbox" [mp100d] ftp response: "550 failed change directory."
and in capture, didn't see difference between cwd command:
capture pc ftp:
capture blackbox ftp:
how shall handle this?
Comments
Post a Comment