FILE TRANSFER PROTOCOL (FTP)
OS - Linux (Red Hat 5.0, 6.0 CentOS )
a. Package Name: vsftpd
b. Document Root: /var/ftp/pub/
c. Configuration File: /etc/vsftpd/vsftpd.conf, userlist, chroot_list etc.
root@mmrserver#yum install vsftpd* -y
root@mmrserver#service vsftpd restart; chkconfig vsftpd on
root@mmrserver#PUT YOUR FILE TO /var/ftp/pub/
[N.B. At this stage any existing user can access the ftp from their browser (e,g ftp://192.168.0.1.They can download anything that is placed inside the document root /var/ftp/pub.]
To restrict ftp use follow the steps mentioned below.
a. create a user and assign password for the user
b. configure your vsftpd configuration file
c. add user in chroot_list file
d. PUT YOUR FILE TO /home/userhome/
e. restart the service
a. Add user:
root@mmrserver#adduser rahim
root@mmrserver#passwd rahim
TYPE YOUR PASSWORD
TYPE YOUR PASSWORD
root@mmrserver#cd /etc/vsftpd/
root@mmrserver#cp vsftpd.conf vsftpd.conf.bak [creating a backup file of your configuration file ]
root@mmrserver#cp vsftpd.conf [Edit following fields]
| Anonymous_enable=NO
|
|
|
| chroot_list_enable=YES
|: wq [Save and exit]
root@mmrserver#vim chroot_list [Add the user name]
| rahim |
|
|: wq [Save and exit]
root@mmrserver#PUT YOUR FILE TO /home/rahim/
root@mmrserver#service vsftpd restart; chkconfig vsftpd on
OS - Linux (Red Hat 5.0, 6.0 CentOS )
a. Package Name: vsftpd
b. Document Root: /var/ftp/pub/
c. Configuration File: /etc/vsftpd/vsftpd.conf, userlist, chroot_list etc.
Installation Process -
login server as root
Configure your server for yum install (see how to prepared your server for yum)
open a TERMINAL (Commands to be Execute on Terminal)root@mmrserver#yum install vsftpd* -y
root@mmrserver#service vsftpd restart; chkconfig vsftpd on
root@mmrserver#PUT YOUR FILE TO /var/ftp/pub/
[N.B. At this stage any existing user can access the ftp from their browser (e,g ftp://192.168.0.1.They can download anything that is placed inside the document root /var/ftp/pub.]
To restrict ftp use follow the steps mentioned below.
a. create a user and assign password for the user
b. configure your vsftpd configuration file
c. add user in chroot_list file
d. PUT YOUR FILE TO /home/userhome/
e. restart the service
a. Add user:
root@mmrserver#adduser rahim
root@mmrserver#passwd rahim
TYPE YOUR PASSWORD
TYPE YOUR PASSWORD
root@mmrserver#cd /etc/vsftpd/
root@mmrserver#cp vsftpd.conf vsftpd.conf.bak [creating a backup file of your configuration file ]
root@mmrserver#cp vsftpd.conf [Edit following fields]
| Anonymous_enable=NO
|
|
|
| chroot_list_enable=YES
|: wq [Save and exit]
root@mmrserver#vim chroot_list [Add the user name]
| rahim |
|
|: wq [Save and exit]
root@mmrserver#PUT YOUR FILE TO /home/rahim/
root@mmrserver#service vsftpd restart; chkconfig vsftpd on
No comments:
Post a Comment