Thursday, 23 January 2014

How to Download and upload files on Ftp Server And How to enable uploading on ftp server :)

Hello Friends I am Again Deepak Saini and Now we are going two Thing
1 File downloading and uploading 
2 How to enable uploading 

1 How to Download and upload file from client side
Lets start
Its not a big deal we are using to commands for this
1 First of all we are connect our ftp server
 Synatx: ftp < server ip address > 
               username:-< Your user name>
               password:-  <Your password>

2 Get   command is used for downloading on ftp server
  Synatx:- ftp>  get <file name>
 in this get is our command and file name is the name which we want to download

How to download multiple files at one time
  Syntax:- mget <file name 1 > <file name 2> <file name 3> 
 In this we are download multiple file in one time

4 How to upload file on ftp server   
  Syntax:- put <file name >
 in this put is the command and file name is the name which one u want upload

2 How to enable uploading on Ftp Server 

Setups 
1 First of all we are change the permissions of /var/ftp/pub for others we are giving full access.
Syntax:- chmod 777 /var/ftp/pub 
here chmod is our command which is using for change the permissions and 777 are permissions for full permission for all.

2 Now we are going for some editing in the /etc/vsftpd/vsftpd.conf our ftp config file using vim editor in my case you use which one you want .
Syntax:- vim /etc/vsftpd/vsftpd.conf

 In this we are edit the config file of ftp server and we are uncomment the line  no 27 in this line anon_ upload_enable = yes  this one is the line 

3 Now we are going to next setup and fin the boolean of ftp 
 Syntax:- getsebool -a | grep ftp 

By the help of this command we are get the all booleans of FTP .

4 Now we are change the value or on the boolens which we need in uploading 
  Syntax:- setsebool -P  allow_ftpd_full_access 1
  Syntax:- setsebool -P allow_ftpd_anon_write 1
 
 In the setsebool is our command and -P for chage the value and allow_ftpd_full_access and allow_ftpd_anon_write are our boolens which value we are going for change and 1 is for on the boolean. 

5 Then we are going for restart the service.
 Syntax:- service vsftp restart

Now we and our anonymous user able to upload on the ftp server.

Thanks for reading and sorry for my R.I.P english Jai Hind Dosto _/\_  
   

                     

1 comments:

Thanks for the useful info. Could you please tell what to do in the cases when there is no username and no password?

Post a Comment