EASY STEP to setup FTP service
STEP :
1. yum install vsftpd
2. edit /etc/vsftpd/vsftpd.conf
e.g. limit to user home dir only
chroot_list_enable=YES (just delete #)
chroot_list_file=/etc//vsftpd/chroot_list (just delete #)
3. deny user address , edit ftpusers file
add e.g student1
4. deny by IP :
/etc/hosts.allow
vsftpd: 192.168.60.0/255.255.255.0
/etc/hosts.deny
vsftpd: ALL
SELINUX
5. getsebool -a | grep ftp
6. setsebool -P ftp_home_dir=on
service vsftpd restart
沒有留言:
張貼留言