Login to the Server with root privileges and execute the command:
[roo@localhost~:]#apt-get install vsftd
This will install the ftp server and start the ftp daemon on your server. Execute the command to check the ftp daemon status
[roo@localhost~:]#/etc/init.d/vsftpd status # Check the ftp daemon status
[roo@localhost~:]#/etc/init.d/vsftpd start # Start the ftp daemon
[roo@localhost~:]#/etc/init.d/vsftpd stop # Stop the ftp daemon
Edit the vsftpd.conf file to configure
[roo@localhost~:]#nano /etc/vsftpd.conf # Edit the ftp configuration file
Uncomment the following line:
Consider changing anonymous_enable=YES to anonymous_enable=NO #unable/disable anons
write_enable=YES # un-comment this
local_enable=YES # un-comment this
chroot_local_user=YES # un-comment this
save and exit. Start the ftp daemon;
[roo@localhost~:]#/etc/init.d/vsftpd start
Please note: You can create the ftp user (which are just like normal user) with the following condition.
1. Add /bin/false shell to the /etc/shells file.
2. Create the user with shell as /bin/false (verify in /etc/passwd)
3. If you want the user not to have the access to the ftp resource, edit the /etc/ftpuser and put the user in this list.
No comments:
Post a Comment