Hello,
I am using Net::FTP module to access the FTP server which is configured by me itself on another machine.
I have configured the FTP server for anonymous access as well as authorized access.
Just to understand the module functioning, i used a list of username and password to try out on my file server
Wrote the following code trying combinations of username and password:
eval
{
$ftp = Net::FTP->new($in, Debug => 0);
$ftp->login($username,$password);
};
if(!($@))
{
print SLOG "Connected FTP: for $username and $password \n";
}
It is giving me... Connected to FTP: for all combinations of the username and password.
Note: 1) I want to notify that the FTP server has anonymous login.
2) I don't want it to be accessed by any other username and password except for the valid ones using Net::FTP
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.