Friday, 24 January 2014

Some configurations of Ftp Server Which are usefull for you

Hello friend I am Deepak Saini and today i m telling some tricks which are helps you to secure Ftp server.

Some configuration:)
1 How to change the default umask on files or directories   which are created by users or anonymous user in pub.

2 How to manage the logs of file uploading and downloading.

3 How to manage the change directory message Users when they change the directory.

4 How to mange port 20 for transfer on ftp server .

5 How to change user or owner of files which uploads by anonymous.

6 How to change the default timeout limits on idle or data  connection or session.

7 How to change the Banner of ftp server

8 How to banned email address

Many more configuration in this files so other try you by yourself

Lets start
 1  How to set umask on directories and files whose created by the users 
Setup:-
    We are edit the same files vsftpd.conf
    Syntax:-vim /etc/vsftpd/vsftpd.conf
For this we are change the umask value of  in the file which is default 022.

In this image where is my pointer there by default value is 022 but now i am changed it and write different and its work.

How to Manage the Logs uploading and downloading on ftp server 

Setups 
 We are working on a file in ftp for manage all most things.
   Syntax:- vim /etc/vsftpd/vsftpd.conf
 this is the file which is config file of ftp server and now we are going to some edit for managing logs of uploading and downloading.
By default losgs are create but if you want to disable the logs creation Then .
We are edit this line  

where is my pointer this is the line which one we are little edit by default here is yes and your logs are created and when you enter her NO the logs are not create for upload and download.

3 How to manage the change directory message Users when they change the directory.
  In this topic friends when a ftp user change the directory the a message come directory changed
 default this is on and messages comes when we are change the directory.But if we want the message not come when user change the directory then we are change the YES into NO how i change in this image.


Same my pointer shows you where i change the value :)

4 How to mange port 20 for transfer on ftp server .
Setup:- In this we are stop the service to connect on the port 20 and for this we are change the same in vsftp.conf file then our work is done.Default it is yes we are change it no if we want to stop connection on port 20

5 How to change user or owner of files which uploads by anonymous.
Setup:-In this we are change the owner of the files which are uploaded by the anonymous user
But in this configuration one condition we are not able to make owner root of the anonymous files
By Default this is disable and If we want this then we are make some change in the config file 
1 We are uncomment the line and enter the user name see in the img below.


In this image we are showing which line are we uncommented and enter the users name like deepak i am enter in my case who is the replacing the owner at the place anonymous.

6 How to change the default timeout limits on idle or data  connection or session.
Setup:- In this we are set the time out of idel or data connection and session time out
1st of all we are uncommented the line and then set the value by defaults these are commented
If we want to start the time out on those sessions and connection the er are applly this method .
This image shows you which lines are changed.

7 How to change the Banner of ftp server.
Setup:- In this we are change the banner. Banner is the line which is comes when are connected and login in the ftp server then a line comes Welcome to Ftp server like this .We are going to change this line.
We are change in the which show in this image my pointer show this

 In this I change my name like Welcome on Deepak Ftp server like this .first we are uncomment the line.




 8 How to banned email address.
Setup:- In this we are banned the email id on ftp server . 1st we are uncomment the lines in which banned email id explain.And then we are make a file in vsftpd directory banned_emails then we entry in this file banned emails and then our configuration work.
I upload two images for this.
 
Thanks for reading and sorry for my R.I.P english Jai Hind
Greets  to DeadManINDIA  and Govind Singh

0 comments:

Post a Comment