Anonymous FTP Service: anonftp.exe

The anonftp.exe utility serves to manage the anonymous FTP service. The utility allows the following operations:

 

Syntax

anonftp.exe <command> [<domain_name>] [

<option1><param> [<option2><param>]…[<option N><param>]

]

 

Example

The following command line enables the anonymous FTP service on the domain1.com domain, restricts the number of simultaneous FTP connections to 15, allows creating subdirectories within the incoming directory, and restricts the download bandwidth to 100 KB.

>anonftp.exe --update domain1.com -status true -max_connects 15 -incoming true -bandwidth 100

 

Commands

Command

Parameter

Description

Example

--update or -u

<domain_name>

Updates the anonymous FTP settings for the specified domain.

To update somewhere.com by enabling the anonymous FTP service on it:

>anonftp.exe --update somewhere.com -status true

or

>anonftp.exe -u somewhere.com -status true

--info or -i

<domain_name>

Retrieves the information about anonymous FTP settings set for the specified domain.

To get the info on anonymous FTP settings on somewhere.com:

>anonftp.exe --info somewhere.com

or

>anonftp.exe -i somewhere.com

--help or -h

 

Displays help on the use of the utility.

To see the help info on the use of this utility:

>anonftp.exe -–help

or

>anonftp.exe –h

Options

Option

Parameter

Description

Example

-status

true|false

Enables/disables the anonymous FTP service on the specified domain.

To enable the anonymous FTP service on somewhere.com:

>anonftp.exe --update somewhere.com -status true

-message

true|false

Displays the login message.

To display the 'Welcome!' login message when logging to the anonymous FTP service on somewhere.com:

>anonftp.exe --update -status true -message true -message-text "Welcome!"

-message-text

<string>

Specifies the login message text.

-incoming

true|false

Enables/disables upload to the incoming directory. Is set to false by default.

To enable upload to the incoming directory:

>anonftp.exe --update somewhere.com -status true -incoming true

-incoming-dirs

true|false

Allows creating directories in the incoming directory.

To allow creating directories in the incoming directory:

>anonftp.exe --update somewhere.com -status true -incoming-dirs true

-incoming-downloads

true|false

Enables/disables downloading from the incoming directory.

To allow download from the incoming directory:

>anonftp.exe --update somewhere.com -status true -incoming-downloads true

-incoming-limit

<KB>

Restricts the disk space used by the incoming directory. If set to -1, the disk space is unlimited.

To restrict the disk space for the incoming directory to 900 KB:

>anonftp.exe --update somewhere.com -status true -incoming-limit 900

-max-connects

<number>

Restricts the number of simultaneous connections. If set to -1, the value is unlimited.

To restrict the number of simultaneous FTP connections to 4:

>anonftp.exe --update somewhere.com -status true -max-connects 4

-bandwidth

<KB>

Restricts the download bandwidth. If set to -1, the value is unlimited.

To restrict the download bandwidth to 50 KB:

>anonftp.exe --update somewhere.com -status true -bandwidth 50