Carnegie Mellon University

Transfer Files, Publish or Unpublish

The university provides every Carnegie Mellon affiliate with space on the Andrew File Server (AFS) for a personal website. In addition, each faculty member and teaching assistant can request a Project Volume on the AFS, where they can store course website files in a www directory.

Follow these steps to create a www directory in your personal or course AFS space.

  1. Open a supported Telnet client; Tectia (Windows), Terminal (Mac) and connect to the UserWeb and Course Web server.
    Userid or User Name: your Andrew userID
    Password: your Andrew password
    • CourseWeb files only - type the following UNIX command to change your working directory to the course Project Volume
      cd pathname
      where pathname is the path you were given when you requested your Project Volume
  1. At the prompt, type the following UNIX command to create the www directory where you will store your website files:

    mkdir www

    Note: If you see the message mkdir: cannot create directory 'www': File exists, your www directory has already been created.
  2. To set access rights, which give the server read access to your www directory, type the following UNIX command.
    fs sa www system:anyuser rl

After you develop your website, you can transfer the files to the www directory you created on the host server. Use a supported Secure File Transfer Protocol (SFTP) client to transfer files; SSH Tectia Client (Windows) or Fetch (Mac).

IMPORTANT: Name the first page in your www directory index.html (all lowercase). Consider the index page to be the landing page of the folder.

  1. Launch the SFTP client. You will be prompted to login if you have not already done so through an active browser session.
  2. Use the following settings to connect to the UserWeb and Course Web server.
    Userid: your Andrew userID
    Password: your Andrew password
    Directory: ~/www

    For course pages, navigate to your course's directory at the path:
     where courseid is the course ID number and www is the location of the www directory of your Project Volume.
  3. Transfer (copy) all your website files to the www directory.

    Note: Refer to the documentation for your SFTP program for more information about transferring files. If you are using an Andrew workstation, you can use the UNIX command cp to copy the files. For additional help with using this command, enter "man cp" in UNIX.

Follow these steps to publish your website.

  1. In your web browser, visit Publishing on www.andrew.

    Note: Use UserWeb and CourseWeb KWPublish for authenticated (password-protected) publication. Use authenticated publication only for collections that have a configured .kwpublish file to restrict publication rights by IP address or Andrew UserID.
  2. Select the appropriate radio button for Personal or Course web pages.
  3. Enter your Andrew UserID or course number, then click Publish.
    Note: If a section letter or other text is part of the course number you submitted in your request for a project volume, you must include it in the course number.
Make your website unavailable to the public by unpublishing it. You do not have to remove your website files from your www directory to unpublish them.
  1. Open your Telnet client and connect to Use Tectia for Windows, and Terminal for Mac OS. You will be directed automatically to your Andrew account.
  2. Type the following command at the UNIX prompt to set your working directory to the www directory:
    cd /pathname/www
    where pathname is the path to the www directory of your personal or course folder.
  3. Type the following command to create the file that will remove your files from the server:
    touch .unpublish
  4. Follow the instructions in the Publish Files section to unpublish your website.

When you want to publish your website again, do the following.

  1. Connect to, then set your working directory to the www directory (steps 1 and 2 above).
  2. Type the following command to remove the unpublish file:
    rm .unpublish
  3. Follow the instructions in the Publish Files.