Ftp server linux and window

Page 1

Network Administration

October 7, 2014


Network Administration Contents I.

Linux ........................................................................................................................................ 3 1)

Install pure-ftpf ................................................................................................................................. 3

2)

Allow anonymous download and upload .......................................................................................... 5

3)

Allow user in system can access their home directory through FTP server...................................... 8

4)

Create virtual FTP site (folders link) .............................................................................................. 10

5)

Create virtual user FTP (need use in system for virtual) ................................................................ 15

II. Windows ................................................................................................................................ 16 1)

Install FTP service .......................................................................................................................... 16

2)

Allow anonymous download and upload ........................................................................................ 23

3)

Allow only users in system can connect to FTP server with permission ........................................ 28

4)

Allow only users in AD can connect to FTP server with permission ............................................. 31

October 7, 2014


Network Administration I.

Linux 1) Install pure-ftpf

To install pure-ftp, we need to use command yast –i then in search phrase put type pure-ftp then follow step-by-step:

October 7, 2014


Network Administration

this step is installing the file so wait till finish this step:

We just go to yast 窶的 for install apache

October 7, 2014


Network Administration We need to install apache2 ,apache-example-pages,apache-mod-php5

2)

Allow anonymous download and upload

The first we need to create directory or file in directory on /srv/ftp and use command as below to create directory:

After we create directory already, we use command #ln –s /srv /ftp/ /etc/pureftpd/vhost/ip to point to directory on location /srv/ftp to access directory on Explore or Browser:

October 7, 2014


Network Administration After we create short cut by using IP address to point to all directories on location /srv/ftp. We need to configure file pure-ftp by using command #vim /etc/pureftpd/pure-ftpd.conf to allow anonymouse to access. We allow as below options for anonymouse then save and restart service pure-ftp by using command #rcpure-ftp restart or /etc/init.d/pure-ftpd:

October 7, 2014


Network Administration

We logon client to access ftp service by IP address that we set on suse. Follow as below:

October 7, 2014


Network Administration

3)

Allow user in system can access their home directory through FTP server

To allow user in system the first we need to create user in system by using command #useradd –m username and #passwd username to set password to user. Follow as below:

After we create user in system already, we need to allow user to access on Explore or Browser. We use command #vim /etc/pure-ftpd/pure-ftpd.conf then set some options that we need to allow for user in system. Follow as below:

October 7, 2014


Network Administration

October 7, 2014


Network Administration Then we logon windows client to access to ftp service by using IP address as below:

User can access this directory on browser:

4)

Create virtual FTP site (folders link)

Before we create virtual FTP site we need to create virtual IP

October 7, 2014


Network Administration

Now we have Admin-Department directory for creating virtual ftp site and allow user access. We use some commands as below:

October 7, 2014


Network Administration After we create symbol link and directory as above. Then we create user in system and add user as virtual by command as below:

Then we edit file pure-ftpd.conf to allow user what we want to allow for users. We use command as below to edit file step-by-step:

October 7, 2014


Network Administration

October 7, 2014


Network Administration

We just create folder on IT_Admin-Department

After we edit file already, we need to restart file by use command #rcpure-ftpd restart. Then start to access client by user IP address that is short cut for IT_Admin-Department directory. Follow as below:

User can access this directory on browser:

October 7, 2014


Network Administration 5)

Create virtual user FTP (need use in system for virtual)

The advantage is the PureFTP users are separated from the system users and can only access the system using FTP. To create user FTP we need to have user in system first. To create user in system we use command as below and follow as below:

If we want to list virtual user that create by user in system, we use command as below to list virtual user:

October 7, 2014


Network Administration II.

Windows 1) Install FTP service

October 7, 2014


Network Administration

October 7, 2014


Network Administration

October 7, 2014


Network Administration

Result After we Install it

October 7, 2014


Network Administration

We need to create folder below

October 7, 2014


Network Administration We need to create virtual IP for each folder We go to command ncpa.cpl

October 7, 2014


Network Administration

October 7, 2014


Network Administration

2)

Allow anonymous download and upload

October 7, 2014


Network Administration

October 7, 2014


Network Administration IP address 192.168.1.1 and port for client access 21

October 7, 2014


Network Administration

We go to edit permission for anonymous

October 7, 2014


Network Administration

Test Anonymous can upload and can download

October 7, 2014


Network Administration 3)

Allow only users in system can connect to FTP server with permission

October 7, 2014


Network Administration

October 7, 2014


Network Administration

Test user access this FTP share on browser :

October 7, 2014


Network Administration

4)

Allow only users in AD can connect to FTP server with permission

Before we give user AD can connect to FTP server we need to create user and user can connect to FTP We just click on start => Administrator tool => Active Directory and Computers for create user FTP

When we create user for FTP we just => Right click on domain name => New=> User

October 7, 2014


Network Administration This template for create user for FTP

We go to => Start => Administrator tool => Internet Information service (IIS) Manger for add FTP site for user

October 7, 2014


Network Administration We just right click on Site => Add FTP site ………………..

FTP site name is Training Department and click on 2 go to find folder TrainingDepartment => OK

October 7, 2014


Network Administration

We go to edit permission when user login FTP site => Right click on Training_Department => Edit Permission

October 7, 2014


Network Administration

October 7, 2014


Network Administration Test user ping to IP 192.168.1.1

Test user ping to other IP address

October 7, 2014


Network Administration

October 7, 2014


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.