This document explains how to use the (new) UCLA Astronomy ``anonymous'' FTP server.

The computer in question is called (generically) ftp.astro.ucla.edu (or, locally in the astro.ucla.edu domain, simply ftp). You access the service by typing ftp ftp.astro.ucla.edu and by giving the name ftp, and your e-mail address as password. (This is not to be confused with the ``regular'' FTP service, where you supply your own username and password.)

Note however that all the commands listed below should be typed under your UCLA Astronomy account (i.e. your UNIX shell), and not under the FTP environment (unless mentioned otherwise), which is meant to be used only by people who do not have an account here. (That is the whole point of the anonymous FTP service.)

Faculty, staff, and graduate students automatically have a personal disk area on the ``anonymous'' FTP server. Other current UCLA Astronomy users should request one as needed before trying to use this service. Former UCLA Astronomy users should contact a faculty or staff member to justify the need to obtain one.

The rest of this document is divided in two sections, each of which has two subsections, which corresponds to the four possible different situations for using this service. You can go directly to the subsection relevant to your situation by clicking on one of the four links below:

  • You have a UCLA Astronomy account and you want to ``send'' your files to someone who does not.
  • You have a UCLA Astronomy account and you want to ``receive'' files from someone who does not.
  • You do not have a UCLA Astronomy account and you want to ``take'' files from someone who does.
  • You do not have a UCLA Astronomy account and you want to ``give'' files to someone who does.

  • You have a UCLA Astronomy account.

  • You want to ``send'' your files to someone who does not (have a UCLA Astronomy account).

    First, you need to place the files in your ``anonymous'' FTP download area, namely: /f/pub/$USER (or a subdirectory thereof). This can be done by typing the following:

    rcp -pr FILES ftp:/ftpsite/pub/$USER/
    where FILES is your list of files (and/or directories). (Please make sure that those files/directories are not world writable, and do not loosen the permissions on your download directory.)

    Then you can let your colleague(s) know that they can get the files through anonymous FTP by following the instructions below, at the URL:

    <ftp://ftp.astro.ucla.edu/pub/USERNAME/>
    (where USERNAME is your username--same as $USER above).

    If later you want to remove the FILES from your download area, simply do the following:

    	cd /f/pub/$USER
    	rm FILES
    


  • You want to ``receive'' files from someone who does not (have a UCLA Astronomy account).

    First, you need to create a directory in your ``anonymous'' FTP upload area (namely, /f/incoming/$USER). This MUST be done by typing the command:

    allow-upload DIRECTORY
    where DIRECTORY is the name of the directory for this transfer. That name should be known only to you and to the person you are receiving files from. (Please do not modify the permissions on any directory in your upload area--or bad things could happen...) Please note that if you try to use mkdir instead of allow-upload, you will NOT give upload permission and will fail to accomplish what you want.

    Once you have picked the name, you can let your colleague(s) know that they can put the files for you through anonymous FTP by following the instructions below, at the URL:

    <ftp://ftp.astro.ucla.edu/incoming/USERNAME/DIRECTORY/>
    (where USERNAME is your username--same as $USER above--and DIRECTORY is the name you have chosen.) Please note that it is not possible to put files directly under USERNAME/ for security reasons; you MUST create a DIRECTORY exactly one level deeper (and a different one for each transfer).

    After this is done, your colleague(s) should notify you so that you know to retrieve the files. Then type:

    cd /f/incoming/USERNAME/DIRECTORY/
    and you will find them there. Move (mv) them to another location of your choice; then type:
    cd /f/incoming/USERNAME/ ; rmdir DIRECTORY
    (If you fail to remove the DIRECTORY, the system will automatically do it for you a couple of days after it has been created.) You cannot leave files in that area indefinietly.

  • You do not have a UCLA Astronomy account.

  • You want to ``give'' files to someone who does (have a UCLA Astronomy account).

    Ask your UCLA Astronomy colleague where you are supposed to put your files. Once you know, connect to the host ftp.astro.ucla.edu as explained above. Then type:

    cd /incoming/USERNAME/DIRECTORY
    where USERNAME/DIRECTORY will have been given to you by your colleague, and put your files there. (Note that you will be unable to view the contents of the DIRECTORY.) For our protection, you cannot put anything under /incoming/USERNAME/; your UCLA Astronomy colleague MUST have created a DIRECTORY for you there first.

    Do not forget to notify your colleague that the files have been deposited so that (s)he knows to retrieve them. (Please note that this location is temporary, so you have to go through the same procedure if you want to transfer other files at a later date).


  • You want to ``take'' files from someone who does (have a UCLA Astronomy account).

    If you have not already done so, ask your UCLA Astronomy colleague where you can find the files (s)he wants you to take. The location will be something like:

    <ftp://ftp.astro.ucla.edu/pub/USERNAME/>

    If you use a command line FTP client (instead of a web browser), do the following (replacing USERNAME and FILES with the actual names your UCLA Astronomy colleague has given you):

    	ftp ftp.astro.ucla.edu
    	cd /pub/USERNAME
    	get FILES
            
    Please do not forget to disconnect when you are done with your transfer.