Tuesday, 19 November 2013

Install ftp server and set ftp permission on home directory on Linux.

vsftpd  is a service which allows us to setup ftp server in secure way. By default ftp server can be access by anonymously and we can also configure login-based FTP session.

Use the below steps to Install vsftpd server:

Step 1
#yum install vsftpd

Step 2 - (Edit in main configuration file)
#vi /etc/vsftpd/vsftpd.conf

change below line as follows :
anonymous_enable=NO
local_enable=YES

Step 3 - (Enable 'vsftpd' service for automatic start after server restart)
#chkconfig vsftpd on
#service vsftpd start

Step 4 - (Set SeLinux Booleans)
#getsebool -a | grep ftp
#setsebool -P ftp_home_dir on

Now we can make login-based ftp session on web browser or Filezilla ftp client:

Step 5 - (Create Users):
#useradd user1

and update the password of user1
#passwd user1

Now you can access file server :

ftp://ip address of ftp server


username:


passwd:


For any query please feel free to contact me my email ID is sashwatkatore@gmail.com.

No comments:

Post a Comment