CIS Computing & Information Services

CIFS

CCV users can access their home, data and scratch directories as a local mount on their own Windows, Mac, or Linux system using the Common Internet File System (CIFS) protocol (also called Samba). There are two requirements for using this service:

  • An Oscar account with CIFS access enabled (accounts created since 2010 are automatically enabled).
  • Local campus connectivity. Off-campus users can connect after obtaining a campus IP with Brown's Virtual Private Network client, but performance may be degraded.

First users should ensure that the time and date is set correctly on their machine, e.g. for mac 'set time and date automatically'

Use SSH to connect to Oscar to set your CIFS password. Once logged in, run the command:

$ smbpasswd

You will first be prompted for your "old" password, which is the temporary password you were given by CCV when your account was created. Then, enter a new CIFS password twice. You may choose to use the same password here as for your Oscar account.

Note: This command does not change your SSH login password... and changing the SSH login password does not change the CIFS password. The password texted to you when the account is created or when password is reset, is applicable to both the SSH login as well as CIFS but they have to be changed separately henceforth.

Now you are ready to mount your CCV directories locally using the following instructions based on your operating system:


Windows

  • Right-click "Computer" and select "Map Network Drive".
  • Select an unassigned drive letter.
  • Enter \\oscarcifs.ccv.brown.edu\<user> as the Folder.
  • Check "Connect using different credentials"
  • Click "Finish"
  • Enter your CCV user name as "ccv\username" (no quotes)
  • Enter your CIFS password and click "OK".

You can now access your home directory through Windows Explorer with the assigned drive letter. Your data and scratch directories are available as the subdirectories (~/data and ~/scratch) of your home directory.


Mac OS X

  • In the Finder, press "Command + K" or select "Connect to Server..." from the "Go" menu.
  • For "Server Address", enter smb://oscarcifs.ccv.brown.edu/<user> and click "Connect".
  • Enter your username and password.
  • You may choose to add your login credentials to your keychain so you will not need to enter this again.

Optional. If you would like to automatically connect to the share at startup:

  • Open "System Preferences" (leave the Finder window open).
  • Go to "Accounts" > "(your account name)".
  • Select "Login Items".
  • Drag your data share from the "Finder" window to the "Login Items" window.

Linux

  • Install the cifs-utils package:

    CentOS/RHEL:   $ sudo yum install cifs-utils
    Ubuntu:        $ sudo apt-get install cifs-utils
    
  • Make a directory to mount the share into:

    $ sudo mkdir /mnt/rdata
    
  • Create a credentials file and add your CCV account information (use the CIFS password):

    $ sudo gedit /etc/cifspw
    
    username=<user>
    password=<password>
    
  • Allow only root access to the credentials files:

    $ sudo chmod 0600 /etc/cifspw
    
  • Add an entry to the fstab:

    $ sudo gedit /etc/fstab
    

    The fstab entry is the single line:

     `//oscarcifs.ccv.brown.edu/<user> /mnt/rdata cifs credentials=/etc/cifspw,vers=1.0,nounix,uid=<localUser> 0 0`
    

    Change <localUser> to the login used on your Linux workstation.

  • Mount the share:

    $ mount -a