Knowledge Base

Unix Network Space

By mapping drives (Windows) or mounting volumes (Mac), you can access Amherst network storage shares and manipulate files as if they were stored on your own computer. For many purposes, mapped network drives or mounted volumes provide a simpler way to manage files than using SFTP or SSH and Unix commands.

Take note, drive mapping or mounting volumes only works on campus or from off-campus with a VPN connection.

One common use of drive mapping is to put files on a traditional Unix web server. The College’s main web site will let you build a web page quickly and easily, but for some purposes (e.g. JavaScript and PHP development) you'll want to directly create web pages. Everyone has a web site here with the address http://www3.amherst.edu/~AmherstUsername , and similar sites exist for departments and other College groups. However, this service requires greater technical skill.

Warning: When mounting your web space, special file permissions are required for the web server to load your files. You can set them correctly by visiting the web page http://www.amherst.edu/cgi-bin/fix_webpage and logging in.

Windows | Macintosh


Windows

To work on a web page on the traditional web server:

You can access the files on your web site, or another account's web site (while logged in with your own username), by mapping the W: drive:

  1. Right click on My Computer, and select Map Network Drive;
  2. Choose W: (or any available Drive letter if you already are using W:);
  3. As your Folder, type \\unix-nt\www , or if you have already mapped that name, type \\unix-win\www ;
  4. Check the button Reconnect at logon if you want it to automatically connect when you startup. This only works with your logon account; if you are using a different account you will still have to enter the password again at that time.
  5. If you are not connecting using your own account, click on the link different user name; in the dialogue that pops up, enter the other account's AmherstUsername and password, and click the button OK;
  6. Click the button Finish. Now the network drive will be available to you in My Computer.

To work on a file in your Unix home directory:

You may sometimes want to access the home directory of a Unix account, for example, to work on files for a Computer Science course on Romulus or Remus, or for a research project on Cluster.

  1. Right click on My Computer, and select Map Network Drive.
  2. Choose any available Drive letter.
  3. As your Folder, type \\unix-nt\AmherstUsername or \\unix-win\AmherstUsername for Romulus or Remus, or \\cluster\AmherstUsername for Cluster.
  4. Check the button Reconnect at logon if you want it to automatically connect when you startup.
  5. If you are not connecting to your own account, click on the link different user name, and enter the same AmherstUsername as in step 3, along with that account's password, and click the button OK.
  6. Click the button Finish. Now the network drive will be available to you in My Computer.

Caution: Your traditional Unix web site described above also exists in your home directory on Romulus and Remus as the directory public_html. Modifying this directory through your Unix home directory mapping can prevent files in this directory from showing up on your web site. For web publishing, use the first method above, or a Secure FTP connection.

Macintosh (Mac OS X)

The Macintosh understands a number of network disk mounting protocols, in particular Apple Filing Protocol (AFP) and the Windows System Message Block (SMB). You can specify the protocol with a prefix such as afp:// or smb:// . The former is the default, and is assumed if no protocol is specified.

To work on a web page on the traditional web server:

  1. In the Finder, menu Go > Connect to server;
  2. In the Address field, type smb://unix-win.amherst.edu ;
  3. Log in with an Amherst username and password.
  4. Click the button OK.

An alternative to the above is the address afp://unix-mac.amherst.edu/WWW Webpage, however using the first address will ensure correct file permissions on the web site. The second address will only preserve existing file permissions, and any new files will need to be fixed using http://www.amherst.edu/cgi-bin/fix_webpage.

To work on a file in your Unix home directory on Romulus or Remus:

  1. In the Finder, menu Go > Connect to server;
  2. In the Address field, type unix-mac.amherst.edu ;
  3. Log in with an Amherst username and password;
  4. In the dialog Select the volumes to mount:, choose Home Directory ;
  5. Click the button OK.

Caution: Your traditional Unix web site described above also exists in your home directory on Romulus and Remus as the directory public_html. Modifying this directory through your Unix home directory mapping can prevent files in this directory from showing up on your web site. For web publishing, use the first method above, or a Secure FTP connection.

To work on a file in your Unix home directory on the Cluster:

  1. In the Finder, menu Go > Connect to server.
  2. In the Address field, type cluster.amherst.edu ;
  3. Log in with an Amherst username and password;
  4. In the dialog Select the volumes to mount:, choose Cluster Home Directory or  Cluster Archive Directory ;
  5. Click the button OK.