FileAccess

From Cornell CAC Documentation

Jump to: navigation, search

Contents

CAC File Access

Two file servers, cacfs01.cac.cornell.edu and cacfs02.cac.cornell.edu, serve all CAC user home directories. You can connect to either file server to access your files.

From v4linux login and compute nodes

  • You can access your home directory using the familiar path ~/<user name>
  • You can find the full path to your home directory by issuing pwd
cd ~/<user name>
or by using the command  getent passwd <user name>

From v3 (Windows) nodes

You can access your home directory using either of the following:

\\cacfs01.cac.cornell.edu\<user name>

or

\\cacfs02.cac.cornell.edu\<user name>

From your local computer on the Cornell campus network:

Windows XP/Vista Users

  • Open My Computer
  • Click on Tools -> Map Network Drive
  • Drive H: (if you are already using this drive letter, use another letter)
  • Folder: \\cacfs01.cac.cornell.edu\<userid>
  • Then:
    • Select "Connect using a different user name:". This will allow you to enter the domain associated with CAC and your userid at CAC, rather than those associated with your own machine.
    • User name: CTC_ITH\your_userid
    • Password: your CAC password
  • Troubleshooting: If you have already mapped the drive and subsequently have problems, disconnect the drive and remap it.
  • Next, Change the DNS settings for TCP/IP:
    • Start
    • Control Panel
    • Network and Internet Connections
    • Network Connections
    • Right click on a connection
    • Properties
    • Internet Protocol(TCP/IP)
    • Properties
    • Advanced
    • DNS Tab
    • Append this DNS suffix:
    • Add
    • cac.cornell.edu

MacOS X Users

  1. In the Finder, select Connect to Server... from the Go menu.

    Image:FileAccess1.jpg
  2. Enter smb://cacfs01.cac.cornell.edu/<user name> or smb://cacfs02.cac.cornell.edu/<user name> in the Server Address field as shown below. You may need to use smb://<username>@cacfs01.cac.cornell.edu/<username>.

    Image:FileAccess2.jpg
  3. Enter your CAC user name and password to log in.

Linux Users

Depending on the distribution you are using, different samba GUI tools might be available to you to access your home directory. In almost all distributions, you can use smbclient and mount commands:

  • smbclient:
    1. Type smbclient //cacfs01.cac.cornell.edu/<user name> -U <user name>
    or //cacfs02.cac.cornell.edu/<user name> -U <user name>
    

    1. Enter the password for your CAC account when prompted
    2. You will see the smb:\> prompt. You can now start transferring files between your local machine and CAC home directory similar to ftp client. Type help for more instructions. -sh-3.2$ smbclient //cacfs01.cac.cornell.edu/<user name> -U <user name>
    Password: 
    Domain=[CTC_ITH] OS=[Unix] Server=[Samba 3.0.28-1.el5_2.1]
    smb: \> help
    

  • mount:

You cannot mount the CAC home directory as NFS for security reasons. To mount it as a CIFS drive, you need to be root, which often means using the sudo command. Then execute

 mount -o user=<username> -t cifs //cacfs01.cac.cornell.edu/<username> /mount/point

where <username> is your username, you use either cacfs01 or cacfs02, and /mount/point is the name of a directory you have already created on your local filesystem. Enter the password for CAC account when prompted. See man mount.cifs for available options for the mount command

If you see errors, such as "missing codepage or helper program," then you have not installed the mount and umount packages for CIFS on your local machine. If problems persist, send your initial command and the results of dmesg | tail.