Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

FTP Configuration


FTP (File Transfer Protocol)













FTP, the File Transfer Protocol, is one of the original network applications developed with the TCP/IP protocol suite. It follows the standard model for network services, as FTP requires a client and a server , the first implementations of FTP date back to 1971.
FTP set out to solve the need to publish documents and software so that people could get them easily from other computer systems. On the FTP server, files were organized in a directory structure; users could connect to the server over the network ,and download files from (and possibly upload files to) the server.
The Very Secure FTP Server (vsFTPd) is the only FTP server software included in the Red Hat Linux distribution , vsFTPd is becoming the FTP server of choice for sites that need to support thousands of concurrent downloads. It was also designed to secure your systems against most common attacks.




Configurations Files
1. /etc/vsftpd/vsftpd.conf -  Main Configuration File
2. /etc/vsftpd/ftpusers - Contains Users list to allow or deny  
3. /etc/vsftpd/user_list - Contains Users list to allow or deny

Note:- If you previously configured YUM server then VSFTPD package need not to be installed. It is already installed while configuring YUM server.

Configuring FTP Server.
[root@server1 ~]# yum install vsftpd*                                   
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.

Server                                                                                                | 1.3 kB     00:00    
Setting up Install Process
Package vsftpd-2.2.2-6.el6.i686 already installed and latest version
Nothing to do
[root@server1 ~]# yum install ftp*
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Server                                                                                                | 1.3 kB     00:00    
Setting up Install Process
No package ftp~ available.
Resolving Dependencies
--> Running transaction check
---> Package ftp.i686 0:0.17-51.1.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================
 Package                   Arch                       Version                             Repository                    Size
===========================================================================
Installing:
 ftp                       i686                       0.17-51.1.el6                       Server                        55 k

Transaction Summary
===========================================================================
Install       1 Package(s)
Upgrade   0 Package(s)

Total download size: 55 k
Installed size: 91 k
Is this ok [y/N]: y                    
Downloading Packages:
ftp-0.17-51.1.el6.i686.rpm                                                                            |  55 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : ftp-0.17-51.1.el6.i686                                                                                1/1

Installed:
ftp.i686 0:0.17-51.1.el6                                                                                                  
Complete!

[root@server1 ~]# vi  /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

to remove the root entry from this file
# Users that are not allowed to login via ftp
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

:wq!
[root@server1 ~]# vi  /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobod

to remove the root entry from this file

# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobod

:wq!

[root@server1 ~]# service  vsftpd  restart                   
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK  ]
[root@server1 ~]# chkconfig  --level 35 vsftpd on     
[root@server1 ~]#cd  /var/ftp                                     
[root@server1  ftp]#cat  > hello                                              
Welocme to ITTBLES                                                          
CTRL+D
           
Now open Mozila Firefox and type ftp://200.0.0.100/  in addess bar and press enter. You are able to access pub directory with the help of ftp service. Sameway you can access above link in windows operating systemas with Internet Explorer as well.

1. Configuring FTP Client. (Coping file from server to client)        
[root@client ~]# yum install vsftpd*                          
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Client                                                                                               | 1.3 kB     00:00    
Setting up Install Process
No package ftp~ available.
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.i686 0:2.2.2-6.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved

========================================================================
 Package                   Arch                       Version                             Repository                    Size
========================================================================
Installing:
vsftpd                       i686                       2.2.2-6.el6  Client155 k

Transaction Summary
========================================================================
Install       1 Package(s)
Upgrade   0 Package(s)

Total download size: 155 k
Installed size: 343 k
Is this ok [y/N]: y                                
Downloading Packages:
vsftpd-2.2.2-6.el6.i686.rpm                                                                            |  155 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : ftp-0.17-51.1.el6.i686                                                                                1/1
Installed:
vsftpd.i686.
0:2.2.2-6.el6
Complete!

[root@client ~]# yum  install ftp*                               
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Client                                                                           | 1.3 kB     00:00    
00:00
Client/primary                                                                          | 1.3 kB     00:00    
00:00
Client                                       2679/2679
Setting up Install Process
No package ftp~ available.
Resolving Dependencies
--> Running transaction check
---> Package ftp.i686 0:0.17-51.1.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================
 Package                   Arch                       Version                             Repository                    Size
========================================================================
Installing:
 ftp                       i686                       0.17-51.1.el6                      Client                        55 k

Transaction Summary
========================================================================
Install       1 Package(s)
Upgrade  0 Package(s)
Total download size: 55 k
Installed size: 91 k
Is this ok [y/N]: y                    
Downloading Packages:
ftp-0.17-51.1.el6.i686.rpm                                                                            |  55 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : ftp-0.17-51.1.el6.i686                                                                                1/1

Installed:
ftp.i686 0:0.17-51.1.el6                                                                                                   
Complete!
[root@Client ~]# service  vsftpd  restart                                 
Shutting down vsftpd:                                     [FAILED]
Starting vsftpd for vsftpd:                               [  OK  ]
[root@Client ~]# service  vsftpd  restart                                  …….
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK]
[root@client ~]# chkconfig  --level 35 vsftpd on                     …….

[root@Client ~]# ftp  200.0.0.1                                               …….
Connected to 200.0.0.1 (200.0.0.1).
220 (vsFTPd 2.2.2)
Name (200.0.0.1:root): root
530 Permission denied.
Login failed.
ftp>

Now go to Server side and remove root user entry from fele listed below

[root@Server1 ~]# vi /etc/vsftpd/ftpusers                    …….
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

------------remove the root entry from this file-------------------
# Users that are not allowed to login via ftp
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

:wq!

[root@Server1 ~]# vi  /etc/vsftpd/user_list                  …….
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do n[root@Client ~]# vi  /etc/vsftpd/ftpusers ot even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

-------------------remove the root entry from this file------------------
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do n[root@Client ~]# vi  /etc/vsftpd/ftpusers ot even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

:wq!

Now go to Client Side and use ftp command to copy the file.

Note:- If you want to block any user add the that user name to any of the above file

[root@Client ~]# ftp  200.0.0.1                                   …….
Connected to 200.0.0.1 (200.0.0.1).
220 (vsFTPd 2.2.2)
Name (200.0.0.1:root): root                             …….
331 Please specify the password.
Password: * * * * *                                         …….
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd  /var/ftp/                                              …….
250 Directory successfully changed.
ftp> ls                                                              …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Here comes the directory listing.
-rw-r--r--    1 0        0               3 May 20 17:34 hello
drwxr-xr-x 9 0        0            4096 May 20 15:18 pub
226 Directory send OK.
ftp> get hello                                                   …….
local: hello remote: hello
227 Entering Passive Mode (200,0,0,1,100,3).
150 Opening BINARY mode data connection for hellow (3 bytes).
226 Transfer complete.
3 bytes received in 0.000153 secs (19.61 Kbytes/sec)
ftp> bye                                                           …….
221 Goodbye.
[root@Client ~]# ls                                          …….
anaconda-ks.cfg  Documents  hello       install.log.syslog  Pictures  Templates
Desktop          Downloads  install.log  Music               Public    Videos

2. Configuring FTP Client. (Coping file from server to client on specific location)
[root@Client ~]# ftp  200.0.0.1                                   …….
Connected to 200.0.0.1 (200.0.0.1).
220 (vsFTPd 2.2.2)
Name (200.0.0.1:root): root                             …….
331 Please specify the password.
Password: * * * * *                                         …….
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd  /var/ftp/                                              …….
250 Directory successfully changed.
ftp> ls                                                              …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Here comes the directory listing.
-rw-r--r--    1 0        0               3 May 20 17:34 hello
drwxr-xr-x 9 0        0            4096 May 20 15:18 pub
226 Directory send OK.
ftp> get                                                            …….
[remote file]: hello                                           …….
[local file]: /home/user1/file1                          …….
local:  /home/user1/file1  remote: hello
227 Entering Passive Mode (200,0,0,1,100,3).
150 Opening BINARY mode data connection for hellow (3 bytes).
226 Transfer complete.
3 bytes received in 0.000153 secs (19.61 Kbytes/sec)
ftp> bye                                                           …….
221 Goodbye.
[root@Client ~]# cd  /home/cms                                  …….
[root@Client  cms]# ls                                     …….
File1

3. Configuring FTP Client. (Coping file from client to server)        
[root@Client ~]# cat  >  welcome                    …….
Welcome to CMS                                             …….

CTRL+D                                                          …….
[root@Client ~]# ftp  200.0.0.1                                   …….
Connected to 200.0.0.1 (200.0.0.1).
220 (vsFTPd 2.2.2)
Name (200.0.0.1:root): root                             …….
331 Please specify the password.
Password: * * * * *                                         …….
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls                                                              …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Here comes the directory listing.
drwxr-xr-x       11         0            4096             May     20  2011 welcome
drwxr-xr-x       2 0        0            4096             May     20  2011 Desktop
drwxr-xr-x       2 0        0            4096             May     21  2011 Documents
drwxr-xr-x       2 0        0            4096             May     21  2011 Downloads
drwxr-xr-x       2 0        0            4096             May     21  2011 Music
drwxr-xr-x       2 0        0            4096 May    21  2011 Pictures
drwxr-xr-x       2 0        0            4096             May     21  2011 Public
drwxr-xr-x       2 0        0            4096             May     21  2011 Templates
drwxr-xr-x       2 0        0            4096             May     21  2011 Videos
-rw-------          1 0        0            1500             Jan       01  2011 anaconda-ks.cfg
-rw-r--r--          1 0        0           45367            Jan       01  2011 install.log
-rw-r--r--          1 0        0           10565   Jan    01  2011 install.log.syslog
226 Directory send OK.
ftp> put welcome                                             …….
local:  welcome  remote:  welcome
227 Entering Passive Mode (200,0,0,1,100,3).
150 ok to send data.
226 Transfer complete.
ftp> bye                                                           …….
221 Goodbye.
[root@Client ~]# ls                                          …….
Welcome

4. Configuring FTP Client. (Coping file client to server to specific location)
 [root@Client ~]# ftp  200.0.0.1                                  …….
Connected to 200.0.0.1 (200.0.0.1).
220 (vsFTPd 2.2.2)
Name (200.0.0.1:root): root                             …….
331 Please specify the password.
Password: * * * * *                                         …….
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls                                                              …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Here comes the directory listing.
drwxr-xr-x       11         0            4096             May     20  2011 welcome
drwxr-xr-x       2 0        0            4096             May     20  2011 Desktop
drwxr-xr-x       2 0        0            4096             May     21  2011 Documents
drwxr-xr-x       2 0        0            4096             May     21  2011 Downloads
drwxr-xr-x       2 0        0            4096             May     21  2011 Music
drwxr-xr-x       2 0        0            4096 May    21  2011 Pictures
drwxr-xr-x       2 0        0            4096             May     21  2011 Public
drwxr-xr-x       2 0        0            4096             May     21  2011 Templates
drwxr-xr-x       2 0        0            4096             May     21  2011 Videos
-rw-------          1 0        0            1500             Jan       01  2011 anaconda-ks.cfg
-rw-r--r--          1 0        0           45367            Jan       01  2011 install.log
-rw-r--r--          1 0        0           10565   Jan    01  2011 install.log.syslog
226 Directory send OK.
ftp> put                                                            …….
[local file]: welcome                                        …….
[remote file]: /home/user1/file2                                   …….
local:  welcome  remote:  /home/user1/file2
227 Entering Passive Mode (200,0,0,1,100,3).
150 ok to send data.
226 Transfer complete.
ftp> bye                                                           …….
221 Goodbye.
 [root@Client ~]# cd  /home/cms                     …….
[root@Client  cms]# ls                                     …….
File2

5. Configuring FTP Client. (Coping multiple files from server to client)
[root@Client ~]# ftp  200.0.0.1                                   …….
Connected to 200.0.0.1 (200.0.0.1).
220 (vsFTPd 2.2.2)
Name (200.0.0.1:root): root                             …….
331 Please specify the password.
Password: * * * * *                                         …….
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls                                                              …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Here comes the directory listing.
drwxr-xr-x       11         0            4096             May     20 2011 welcome
drwxr-xr-x       11         0            180   May     21 2011 f1
drwxr-xr-x       11         0            156   May     21 2011 f2
drwxr-xr-x       11         0            200   May     21  2011 f3
drwxr-xr-x       2 0        0            4096             May     20  2011 Desktop
drwxr-xr-x       2 0        0            4096             May     21  2011 Documents
drwxr-xr-x       2 0        0            4096             May     21  2011 Downloads
drwxr-xr-x       2 0        0            4096             May     21  2011 Music
drwxr-xr-x       2 0        0            4096 May    21  2011 Pictures
drwxr-xr-x       2 0        0            4096             May     21  2011 Public
drwxr-xr-x       2 0        0            4096             May     21  2011 Templates
drwxr-xr-x       2 0        0            4096             May     21  2011 Videos
-rw-------          1 0        0            1500             Jan       01  2011 anaconda-ks.cfg
-rw-r--r--          1 0        0           45367            Jan       01  2011 install.log
-rw-r--r--          1 0        0           10565   Jan    01  2011 install.log.syslog
226 Directory send OK.
ftp> mget  f*                                                    …….
mget  f1? y                                                      …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Opening BINARY mode data connection for f1 (180 bytes)
226 Transfer  complete.
mget  f2? y                                                      …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Opening BINARY mode data connection for f2 (156 bytes)
226 Transfer  complete.
mget  f1? y                                                      …….
227 Entering Passive Mode (200,0,0,1,76,87).
150 Opening BINARY mode data connection for f3 (200 bytes)
226 Transfer  complete.
ftp> bye                                                           …….
221 Goodbye.
[root@Client  ~]# ls                                         …….
f1         f2  












34 comments:

  1. Quality content is the crucial to invite the visitors to visit the site, that's what this website is providing.
    healthmatchco.com |

    ReplyDelete
  2. I must say that while reading your post I found my thoughts in agreement with the topic that you have discussed, which happens very rare.
    www.v-travelled.com |

    ReplyDelete
  3. All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks
    techviewmedia.com |

    ReplyDelete
  4. I am really satisfied with this posting that you have given us. This is really a stupendous work done by you.
    nashvillehomeportal.com |

    ReplyDelete
  5. Thanks for taking the time to discuss this, I feel about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.
    http://www.autottk.com |

    ReplyDelete
  6. I've seen your awareness about this theme whenever you post it and it really gives an informational message to us readers. I am hoping that you'll continue writing this kind of blog. Thanks for sharing this information.
    kinggyrostruck |

    ReplyDelete
  7. I am very happy to read this. This is the kind of manual that needs to be given and not the random misinformation t hat's at the other blogs. Appreciate your sharing this best posting.
    adamoagency.com |

    ReplyDelete
  8. I am very happy to read this. This is the kind of manual that needs to be given and not the random misinformation t hat's at the other blogs. Appreciate your sharing this best posting.http://www.stillandhouse.com |

    ReplyDelete
  9. Fantastic work and very well-written article. I will recommend reading it to all my friends
    ATL Top Homes |

    ReplyDelete
  10. Obviously, your not familiar with Excel and Macros. Otherwise, you would appreciate what he created allot more.
    http://www.redux-technology.com |

    ReplyDelete
  11. Great! Thanks for sharing the information. That is very helpful for increasing my knowledge in this field.
    pacman |happy wheels |my little pony games | unblocked games
    friv4 kizi 4| unblockedgames

    ReplyDelete
  12. I was working and suddenly I visits your site frequently and recommended it to me to read also. Age Of War 2
    Big Farm | Slitherio
    Tank Trouble | Happy Wheels
    Goodgeme Empire | Slither.io

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X