FTP Users Only In CentOS 5.5 / Redhat RHEL 5.5


FTP User bind with a specific directory


# yum install vsftpd -y
# Setenforce 0
# Vi /etc/sysconfig/selinux

desable the selinux


#  vi /etc/vsftpd/vsftpd.conf

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
passwd_chroot_enable=YES


vi /etc/vsftpd/chroot_list
dhrub


# service vsftpd start
# chkconfig vsftpd on
# useradd -M dhrub
# passwd dhrub
# chown dhrub.dhrub /var/www/html/website/
# ls -ld /var/www/html/website/
# usermod -d /var/www/html/website/./website dhrub
# usermod -s /sbin/nologin dhrub

Comments