Linux4.0 FTP server relevant config
n 4:off 5:on 6:off
[root@michael ~]# service vsftpd restart Shutting down vsftpd: [ OK ] Starting vsftpd for vsftpd: [ OK ] [root@michael ~]# service vsftpd status vsftpd (pid 3643) is running... 8.test user login ftp server. “Anonymous user login” [root@michael ~]# ftp 192.168.5.1 Connected to 192.168.5.1. 220 (vsFTPd 2.0.1) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (192.168.5.1:root): ftp/anonymous 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd 257 "/" ftp> ls 227 Entering Passive Mode (192,168,5,1,201,214) 150 Here comes the directory listing. drwxr-xr-x 2 0 0 4096 May 24 2006 pub 226 Directory send OK. ftp> “loacduser login ftp server” [root@michael ~]# ftp 192.168.5.1 Connected to 192.168.5.1. 220 (vsFTPd 2.0.1) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (192.168.5.1:root): abc 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (192,168,5,1,186,149) 150 Here comes the directory listing. 226 Directory send OK. ftp> ll ?Invalid command ftp> ls -al 227 Entering Passive Mode (192,168,5,1,66,115) 150 Here comes the directory listing. drwx------ 3 500 500 4096 Jul 30 10:13 . drwxr-xr-x 5 0 0 4096 Jul 30 14:50 .. -rw------- 1 500 500 10 Jul 30 10:13 .bash_history -rw-r--r-- 1 500 500 24 Jul 30 10:10 .bash_logout -rw-r--r-- 1 500 500 191 Jul 30 10:10 .bash_profile -rw-r--r-- 1 500 500 124 Jul 30 10:10 .bashrc -rw-r--r-- 1 500 500 383 Jul 30 10:10 .emacs -rw-r--r-- 1 500 500 120 Jul 30 10:10 .gtkrc drwxr-xr-x 3 500 500 4096 Jul 30 10:10 .kde -rw-r--r-- 1 500 500 658 Jul 30 10:10 .zshrc 226 Directory send OK. ftp> pwd 257 "/home/abc" ftp> quit 221 Goodbye. 9.Config ftp loacl user login ftp serer Ëø¶¨ÔÚ×ÔÒѵÄĿ¼ÖÐ.
·½·¨1£º [root@michael ~]# ftp 192.168.5.1 Connected to 192.168.5.1. 220 (vsFTPd 2.0.1) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (192.168.5.1:root): abc 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd 257 "/home/abc" ftp> cd / 250 Directory successfully changed. ftp> pwd''^H ?Invalid command ftp> pwd 257 "/" ftp>
[root@michael ~]# vi /etc/vsftpd/vsftpd.conf
#deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd.banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_ |
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |