Mapping or Mounting TeamShare in Linux

Note: In order to access TeamShare from a non-UBC internet connection, you must be connected to the myVPN service first.
Note: What you see on your screen may differ from the illustrations, depending on your distributed version of Linux.

To map your Personal Home Drive, please follow these steps below:

  1. In Ubuntu, open a Terminal session:
    • In Ubuntu Unity, click the Ubuntu logo and type terminal

      Linux
    • In classic Ubuntu (Gnome), click on Applications > Accessories > Terminal

      Linux 

       
  2. /mnt/<foldername> is where you wish to have your Home Drive mounted
    <cwl> - is your CWL username
    DEPT  -  is the appropriate department ID
    <linux_uid> - is the user id of your user on the local Linux system
    <linux_gid> - is the group id of your user on the local Linux system
    Using the Linux uid and gid will allow write access to the mounted directory as the corresponding localuser.  If you are mounting as root, you can skip these parameters.

    In the open Terminal session, enter the following commands

    # First, fetch your UID & GID
    $ id -u
    <linux_uid>
    $ id -g
    <linux_gid>

    # Next, make your mount point
    $ sudo mkdir /mnt/<foldername>

    # Finally, mount TeamShare
    $ sudo mount.cifs //files.ubc.ca/team/DEPT /mnt/<foldername> -o user=<cwl>,uid=<linux_uid>,gid=<linux_gid>,domain=ead,sec=ntlmssp
    you may need to install the cifs-util package on your system before mounting
  3. If successful, all your shared files will be located in the /mnt/foldername on your local machine

Page last updated on April 7, 2025


UBC Crest The official logo of the University of British Columbia. Urgent Message An exclamation mark in a speech bubble. Bluesky The logo for the Bluesky social media service. Bookmark A bookmark in a book. Browser A web browser window. Caret An arrowhead indicating direction. Arrow An arrow indicating direction. Arrow in Circle An arrow indicating direction. Arrow in Circle An arrow indicating direction. Time A clock. Chats Two speech clouds. E-commerce Cart A shopping cart. Facebook The logo for the Facebook social media service. Help A question mark in a circle. Home A house in silhouette. Information The letter 'i' in a circle. Instagram The logo for the Instagram social media service. Linkedin The logo for the LinkedIn social media service. Location Pin A map location pin. Mail An envelope. Menu Three horizontal lines indicating a menu. Minus A minus sign. Pencil A pencil indicating that this is editable. Telephone An antique telephone. Play A media play button. Plus A plus symbol indicating more or the ability to add. Search A magnifying glass. Settings A single gear. Arrow indicating share action A directional arrow. Speech Bubble A speech bubble. Star An outline of a star. Twitter / X The logo for the X (aka, Twitter) social media service. User A silhouette of a person. Vimeo The logo for the Vimeo video sharing service. Youtube The logo for the YouTube video sharing service.