Difference between revisions of "FTP"

From Peyton Hall Documentation
Jump to navigation Jump to search
m (FTP Directories moved to FTP)
m
Line 1: Line 1:
{{oldfaq|NUM=20}}
+
Files over a MB or two shouldn't be emailed around, since they tend to clog inboxes and mail servers (and it's really not nice to those who don't have broadband access, or perhaps are using a slower network connection).  The two solutions are to put the file in your [[Home page|home page]] somewhere, or put it out for FTP download.
Due to security reasons, normal FTP connections are limited to anonymous FTP if you're outside Peyton Hall. If you wish persons to be able to access files via anonymous FTP, place the files in the directory "/u/ftp/<your username>". This directory should be owned by you, and have permissions set to 0755 (drwxr-xr-x).
 
  
For people to be able to upload files to you, there should be a directory named "incoming" in your FTP area, with permissions set to 0733 (drwx-wx-wx). This is so that people can upload files to that area, but not subsequently download them again. Allowing anyone to see the files in your incoming area can cause problems with people who would then upload things like illegal software, porn, or other undesirable files, and others would be able to download them. Essentially you become a mirror site for anyone's junk. Granted, you can delete the files, but most "crackers" and "script kiddies" will test the FTP server's capabilities first; upon seeing that they can't download from your incoming directory, they'll pass it over for someone else's.
 
  
----
+
== FTP setup ==
For outside access to your FTP area, ftp to ftp.astro.princeton.edu (or use a web browser to connect to ftp://ftp.astro.princeton.edu/). Your area will be in "/<your username>".
+
=== Downloading ===
 +
Due to security reasons, normal FTP connections are limited to anonymous FTP.  If you wish persons to be able to access files via anonymous FTP, place the files in the directory "/u/ftp/<your username>".  This directory should be owned by you, and have permissions set to 0755 (drwxr-xr-x).  To access to your FTP area, ftp to ftp.astro.princeton.edu (or use a web browser to connect to ftp://ftp.astro.princeton.edu/). Your area will be in "/<your username>".
 +
 
 +
 
 +
=== Uploading ===
 +
For people to be able to upload files to you, there should be a directory named "incoming" in your FTP area, with permissions set to 0733 (drwx-wx-wx).  This is so that people can upload files to that area, but not subsequently download them again.  Allowing anyone to see the files in your incoming area can cause problems with people who would then upload things like illegal software, porn, or other undesirable files, and others would be able to download them. Essentially you become a mirror site for anyone's junk.  Granted, you can delete the files, but most "script kiddies" will test the FTP server's capabilities first; upon seeing that they can't download from your incoming directory, they'll pass it over for someone else's.

Revision as of 16:42, 21 May 2007

Files over a MB or two shouldn't be emailed around, since they tend to clog inboxes and mail servers (and it's really not nice to those who don't have broadband access, or perhaps are using a slower network connection). The two solutions are to put the file in your home page somewhere, or put it out for FTP download.


FTP setup

Downloading

Due to security reasons, normal FTP connections are limited to anonymous FTP. If you wish persons to be able to access files via anonymous FTP, place the files in the directory "/u/ftp/<your username>". This directory should be owned by you, and have permissions set to 0755 (drwxr-xr-x). To access to your FTP area, ftp to ftp.astro.princeton.edu (or use a web browser to connect to ftp://ftp.astro.princeton.edu/). Your area will be in "/<your username>".


Uploading

For people to be able to upload files to you, there should be a directory named "incoming" in your FTP area, with permissions set to 0733 (drwx-wx-wx). This is so that people can upload files to that area, but not subsequently download them again. Allowing anyone to see the files in your incoming area can cause problems with people who would then upload things like illegal software, porn, or other undesirable files, and others would be able to download them. Essentially you become a mirror site for anyone's junk. Granted, you can delete the files, but most "script kiddies" will test the FTP server's capabilities first; upon seeing that they can't download from your incoming directory, they'll pass it over for someone else's.