################## FTP SERVER ######################
1)To install the package.
#rpm -ivh vsftpd-2.0.5-10.el5.i386.rpm
2)To configure the configuretion file.
#vim /etc/vsftpd /vsftpd.comf
anonymous_enable=YES --- For defoult user.
local_enable=YES --- For local user
anon_mkdir_write_enable=YES --- for write permition
ftpd_banner=Welcome to avera FTP service. --- For banner.
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list --- to creat the above file for blocking the user into his home directory.
3)To create the file under this path.(for blocking)
#vim /etc/vsftpd/chroot_list
u1
u2
4)To block the user for login.
# vim /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
u1
5)To restart the service.
#service vsftpd restart
#/etc/init.d/vsftpd restart
6)To create users
#useradd u1
#useradd u2
#passwd u1
#passwd u2
7)Login by the users.
#ftp 10.0.0.36 ----(ftp server ip)
name ftp --- defoult user
name u1 --- other users
############### END ################
By Laxman D. Kadam
Ph. No. 9967413230
email:-vikasjk3@gmail.com
No comments:
Post a Comment