Thursday, December 2, 2010

FTP (File Transfer Protocol)

It is a service of I.I.S. used for uploading or downloading large amount of files over internet or intranet. runs on a port no.21
Creating an FTP site:

On DC
Open E drive
Create a folder FTP root
Create few files in that folder
Open I.I.S.
Right click on FTP - new – FTP site
Next – FTP name – ex EDPFTP – Select IP
Next - do not isolate users – browse the FTP folder we have created in E drive
Next – select read &write - next – finish
Connecting to FTP server

On member server
Start – run – cmd – create a folder local in E drive - ex: md local
Cd local
Ftp (server’s ip address)
Type administrator
Type password
You will be at FTP>.
Downloading a file from command line:
Get
Type the filename to be downloaded
Type the filename to be saved as (same file name)


Uploading a file from command line

Put
Type the filename to be uploaded
Type the filename to be saved as (same file name)
Downloading multiple files: mget *
Turning off interactive mode: prompt (system does not prompt for conformation while downloading multiple files.)
Uploading multiple files: mput *
Practice: on DC
Create an FTP folder
Host some files in that FTP folder
On member server
Connect to ftp site
Download the files
Upload the files
Create a folder in ftp site
Upload the files to this remote folder
FTP commands:Dir - for listing FTP contents
Get - for downloading
Put - uploading
Prompt - disable interactive mode
Mget - downloading multiple files
Mput - uploading multiple files
Bye - ending session
Close - close the session
Mkdir - to create a folder in ftp site
Rmdir - to delete a folder
Del - to delete a file
Pwd - to list present working dir
Lcd - locally change directory
Cd - change directory in ftp site
Bell - gives beep sound after the action
Anonymous account: It is a default a/c available with ftp any user can login to ftp server despite no a/c in FTP server.



Connecting to FTP server as anonymous user

Go to command prompt
Ftp server’s I.P. or
Open I.P. address
Type anonymous
Provide password if it has
Disabling anonymous connections:

Open I.I.S.
FTP site properties
Security accounts
Uncheck the box allow anonymous connections - yes
Verification
Go to FTP prompt & try to login as anonymous user.
Isolation of Users:
When we want to secure the ftp contents or when we want ftp users to have their own folders with ftp site we use isolating users.
Creation of isolating ftp users
Create 2 users in AD
Open E drive
Create a root folder
In the folder create a subfolder named as our domain name without extension ex. Zoom, India. - - u1, u2, u3
Creating a FTP site for isolating users open I.I.S.

Right click on new FTP site
FTP site name – select the IP
Select isolate users – next
Browse the root folder we’ve created
Ok – next – check the box write – next - finish.
Verification:On Member server
Open I.E.
Type ftp:\\I.P. add of ftp server
We should notice logon window
Provide user name & pwd
Then we notice the file we’ve created.

1 comment:

  1. this information is helping more than i thought...
    so i am requesting to publish advanced topicis on srever 2008

    ReplyDelete