| Oekosoft | | | Inhalt |
Q & A: Changes in Setting Up Anonymous FTP Access (UNIX only)
To increase your FTP site's security and
to provide you with greater control over your FTP site, we are introducing a
number of changes in the functionality of our anonymous FTP services. These
changes require that you make some simple modifications to your existing anonymous
FTP directory structure.
This question and answer (Q&A) document highlights the major issues regarding
the functional changes in our anonymous FTP services. Here you will also find
what you need to do to modify your FTP site to use these services.
Q: What changes are being made to anonymous
FTP accessibility and functionality?
A: There are a number changes that you should know about:
Your FTP site is monitored for
disk space availability and data transfer totals. So, be sure to administer
it carefully in order to avoid exceeding your hosting account's allotted
disk space and data transfer limits.
Q: What anonymous FTP functionality
will not be changed?
A: Overall anonymous FTP functionality will be largely
unchanged. The changes to FTP functionality are limited to the above-mentioned
anonymous FTP directory structure -- specifically, the addition of "/aftp"
-- and the security-based limitations on user navigation via anonymous log in.
Q: Should I create the "/aftp"
directory? What happens if I choose not to create it?
A: We suggest that you create the "/aftp" directory and populate it
with the folders and files that you wish to make available to your anonymous
users. If you choose not to create the "/aftp" directory, our system
will create the "/aftp" directory automatically the first time an
anonymous user tries to connect to your anonymous FTP site. Once the "/aftp"
directory is created, the anonymous user begins navigation of your anonymous
FTP site from within that directory. Keep in mind, however, that the "/aftp"
directory will be empty when the system creates it for you. In the unlikely
event that the system cannot create the "/aftp" directory, the user's
anonymous connection will be not be allowed.
Q: By what date will I need to make the
above-mentioned changes to my FTP site?
A: On September 2, 2003, we will switch to our new
anonymous FTP process. You should make all necessary changes to your FTP site
by no later than that date.
Q: How should I update hyperlinks that point
to my anonymous FTP site?
A: As the "/aftp" directory is now required
for anonymous FTP access and navigation, its addition to your site obviously
changes the paths to any files or directories that you make available to your
site's anonymous users. Therefore, any external hyperlinks (links located
on web pages) that point to those files or directories will need to be updated
or somehow redirected accordingly. Below, we provide advice on two methods that
you can use:
Method One
This method directs anonymous users to your site's "/aftp" directory automatically without your having to manually update any external hyperlinks.
Example 1: Shell script
For user "userid", a typical shell script would look something like the following:
#!/bin/sh
echo Content-type: text/plain
echo
/bin/ln -s /u/web/userid/myftp /u/web/userid/aftp/myftp
echo Done
Example 2: Perl script
For user "userid", a typical Perl script would look like the following.
Note that this script can be uploaded to cgi-local and executed through a web
browser:
#!/usr/local/bin/perl
print "Content-type: text/plain\n\n";
symlink ("/u/web/userid/myftp","/u/web/userid/aftp/myftp");
print "Done!";
The two scripts mentioned above are very basic
and are to be used for illustrative purposes only. When you create your own
script, you may want to include additional functionality, such as error checking,
that would result in a more robust script.
Method Two
Below is an alternative to Method One. Method Two requires that you manually update your external hyperlinks. This method works well if you have only a few external hyperlinks whose URLs can be updated quickly:
Q: Will this new anonymous FTP functionality include the ability to display
messages to my site's users?
A: Yes. You now have the ability to customize and display the following user-facing
messages:
Place the welcome.msg and quit.msg files in
the "/aftp" directory of your site to display these messages. For
example, if you want these messages to be displayed from your web site and from
your anonymous FTP site, you could place the files in your HTTP root and in
your anonymous FTP root. Realize, however, that quit.msg works only for the
directory in which it is located. That is, if quit.msg is placed in a parent
directory, it will display only when the user exits from that parent directory.
It would not display if the user exists from any child directories located beneath
that parent directory
Place first.msg into the directory (or directories) where you want its message
to display when a user changes to that directory.