????????????linux???????ftp????????????????ftp???????????????????????????????·?????“/”???????????????
???????磬??????????usertest???????usertest???????/home/mpsp/ftp/usertest
????????????Red Hat Enterprise Linux Server release 5.4 (Tikanga)
????ftp??vsftp
?????????????linux?????usertest??
????1????mpsp??????????????usertest??????/home/mpsp/ftp/usertest
????2????root??????linux?????????????????????????????????
????[root@- home]# useradd -d /home/mpsp/ftp/usertest usertest
????3?? ????????????????????
????[root@- etc]# passwd usertest
????Changing password for user usertest.
????New UNIX password:
????Retype new UNIX password:
????passwd: all authentication tokens updated successfully.
???????????[root@- etc]# cat /etc/passwd
?????????????????????????usertest:x:504:504::/home/mpsp/ftp/usertest:/bin/bash
?????????????????μ????id????id??504??504??????????????????????mpsp??????????????????????usertest????mpsp?饗??id500????
????4???????????μ?????飬????????
????[root@- home]# usermod -g mpsp usertest
???????????[root@- etc]# cat /etc/passwd
?????????????????????????usertest:x:504:500::/home/mpsp/ftp/usertest:/bin/bash
??????????????ftp????????·???????
?????????usertest?????ftp???????????????????????????????ftp???????????/etc/vsftpd/vsftpd.conf??????userlist_enable??userlist_deny??userlist_file?????userlist_deny=NO???????userlist_file????е?????????ftp?????userlist_deny=YES??userlist_file??????о????????????ftp????????userlist_enable??ù??????????????????????£?
????userlist_enable=YES
????userlist_deny=NO
????userlist_file=/etc/vsftpd/user_list
????????????????????/etc/vsftpd/user_list????У?????????С?
???????????????mpsp????????usertest??mpsp???????????usertest??????????????????usertest???mpsp????????/home/mpsp?μ?????·?????з????????????????????????????????????????ftp??????usertest?????????????????????????mpsp???????????????????????????????usertest?????????Χ??????????????????????£?
????1. cd /etc/vsftpd ????ftp?????????
????2. vi vsftpd.conf????????????#chroot_list_enable=YES????????????#??????????????????
???????chroot_list_file??chroot_list_file=/etc/vsftpd/chroot_list
????3. ??chroot_list?????????????????????????????????.
?????????????vsftpd.conf??????????ftp?????????£?
????[root@linuxsir001 root]# /etc/init.d/vsftpd restart
??????? vsftpd?? [ ??? ]
????? vsftpd ??? vsftpd?? [ ??? ]
????????usertest???ftp????????????????????????????????????????????£????????????????????ɡ?