file_sharing.md 3.32 KB
Newer Older
eharstad's avatar
eharstad committed
1
2
3
4
5
+++
title = "File Sharing"
description = "How to share files using Globus"
weight = 50
+++
6
7

If you would like another colleague or researcher to have access to your
eharstad's avatar
eharstad committed
8
9
data, you may create a shared endpoint on Tusker, Crane, or Attic. You can personally manage access to this endpoint and
give access to anybody with a Globus account (whether or not
10
11
they have an HCC account).  *Please use this feature responsibly by
sharing only what is necessary and granting access only to trusted
eharstad's avatar
eharstad committed
12
users.*
13

eharstad's avatar
eharstad committed
14
15
{{% notice info %}}
Shared endpoints created in your `home` directory on HCC servers (with
16
17
the exception of Attic) are *read-only*. You may create readable and
writable shared endpoints in your `work` directory (or `/shared`).
eharstad's avatar
eharstad committed
18
{{% /notice %}}
19
20
21
22
23
24
25

1.  Sign in to your Globus account, click on the 'Manage Endpoints' tab
    and search for the endpoint that you will use to host your shared
    endpoint.  For example, if you would like to share data in your
    Tusker `work` directory, search for the `hcc#tusker` endpoint.  Once
    you have found the endpoint, it will need to be activated if it has
    not been already (see [endpoint activation instructions
eharstad's avatar
eharstad committed
26
    here]({{< relref "activating_hcc_cluster_endpoints" >}})).
27
28
29
     If it is already activated, select the endpoint by clicking on the
    name.  Then select the 'Sharing' tab and click 'Add Shared
    Endpoint'.    
eharstad's avatar
eharstad committed
30
31
{{< figure src="/images/6750242.png" >}}
{{< figure src="/images/6750243.png" >}}
32
33
34
      
2.  In the 'Source Path' box, enter the full path to the directory you
    would like to share.  Only files under this directory will be shared
eharstad's avatar
eharstad committed
35
36
37
    to the endpoint users you grant access.  Enter a descriptive endpoint
    name and provide a
    short description of the endpoint if you wish.  Finally, click 'Create and Manage
38
    Access'.
eharstad's avatar
eharstad committed
39
{{< figure src="/images/6750244.png" >}}
40
41
      
3.  Type the Globus ID of the user to whom you would like to grant
eharstad's avatar
eharstad committed
42
    access to this endpoint.  Next enter the *relative path* of the
43
44
45
46
47
    directory that this user should be able to access.  For example, if
    the source path of your shared endpoint
    is `/work/<groupid>/<userid>/share` but you would like your
    colleague to only have access
    to `/work/<groupid>/<userid>/share/dataX`, then the 'Path' should be
eharstad's avatar
eharstad committed
48
    entered as simply `/dataX`.  Finally, click the blue 'Add' button.
49
     You should see the message: '1 user added successfully'.  
eharstad's avatar
eharstad committed
50
51
{{< figure src="/images/6750245.png" >}}
{{< figure src="/images/6750246.png" >}}
52
53
54
      
4.  You can also add a group of users.  First you will need to create a
    group (see [instructions for creating
eharstad's avatar
eharstad committed
55
    groups]({{< relref "creating_globus_groups" >}})).
56
57
58
59
     To give an entire group access to your shared endpoint, you will
    need to search for the group name by clicking on the word
    'search &gt;&gt;' which appears just to the right of the ID text
    box.  
eharstad's avatar
eharstad committed
60
{{< figure src="/images/6750247.png" >}}
61
62
63
64
65
66
67

5.  Next, enter the name of your group in the search text box, click the
    search icon, select your group from the search results by checking
    the box in front.  Enter the relative path to which group members
    should have access, and click the blue 'Use Selections' button at
    the bottom.  You should receive the message: 'A group added
    successfully.'  
eharstad's avatar
eharstad committed
68
69
{{< figure src="/images/6750248.png" >}}      
{{< figure src="/images 6750249.png" >}}
70

eharstad's avatar
eharstad committed
71
---
72
73
74