FTP

From Peyton Hall Documentation

(Difference between revisions)
Jump to: navigation, search
m
(Added note that /u/ftp is unavailable from Macs)
Line 6: Line 6:
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>".
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>".
 +
'''Please note:''' Because /u/ftp is a symlink to an automount, this '''will not work''' from department '''Macs'''.
=== Uploading ===
=== 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.
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 15:35, 19 June 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>".

Please note: Because /u/ftp is a symlink to an automount, this will not work from department Macs.

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.

Personal tools