-
Notifications
You must be signed in to change notification settings - Fork 0
SP-2182: add user groups doc #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b4e4ea0
add user groups doc
MelissaGraham 8bad543
fix broken link
MelissaGraham 7098a61
fix ref
MelissaGraham 4564c72
try fix with doc ref
MelissaGraham ae1906d
fix trailing whitespace
MelissaGraham db7debb
try ref with ref tag
MelissaGraham a7730e7
FE comment 1
MelissaGraham 3027c30
FE comment 2
MelissaGraham 278cb07
FE comments
MelissaGraham 5623087
minor tweaks
MelissaGraham 2f27495
fix typo
MelissaGraham 3f56050
add note re file writes
MelissaGraham ab76a44
fix typo
MelissaGraham 8520ec0
add sticky
MelissaGraham 7a2a691
fix typos
MelissaGraham d799f3d
add how to chmod grp write
MelissaGraham 8869d62
FE comments
MelissaGraham 62fa527
IDRHL timing out
MelissaGraham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| ################### | ||
| User-managed groups | ||
| ################### | ||
|
|
||
| Create and manage closed user groups in order to share private files. | ||
|
|
||
| .. _user-group-create: | ||
|
|
||
| Create a group | ||
| ============== | ||
|
|
||
| Groups are created an managed in the Comanage system at `id.lsst.cloud <https://id.lsst.cloud>`_ | ||
| (not from the terminal command line, as in some other systems). | ||
|
|
||
| How to create a group in Comanage: | ||
|
|
||
| * In a browser, navigate to `id.lsst.cloud <https://id.lsst.cloud>`_ and log in. | ||
|
|
||
| * In the left menu sidebar, click on "Groups" and then "My Groups". | ||
|
|
||
| * At right, a list of all the groups associated with your account will appear. | ||
|
|
||
| * In the top horizontal menu, click on "Add Group". | ||
|
|
||
| * Set the group properties: | ||
|
|
||
| * The group name should be short and must start with ``g_``. | ||
|
|
||
| * Write a short description. | ||
|
|
||
| * Leave the status as the default "Active". | ||
|
|
||
| * Leave the checkbox next to "Open" unselected, to create a closed group. | ||
MelissaGraham marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| * Leave the checkbox next to "Require All for Nested Memberships" unchecked; this can be changed later if nested sub-groups are created. | ||
MelissaGraham marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| * Click the blue "Add" button. | ||
|
|
||
|
|
||
| The next time you enter the Notebook Aspect, this group will be accessible. | ||
|
|
||
MelissaGraham marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Manage group membership | ||
| ======================= | ||
|
|
||
| Only group owners can manage group membership. | ||
|
|
||
| A user can only be a member of up to 15 groups at this time. | ||
| Joining additional groups will have no effect. | ||
|
|
||
| From the terminal command line it is possible to see all groups a user belongs to with ``groups <username>`` | ||
| (see your own username with ``whoami``). | ||
|
|
||
| How to manage group membership in Comanage: | ||
|
|
||
| * In a browser, navigate to `id.lsst.cloud <https://id.lsst.cloud>`_ and log in. | ||
| * In the left menu sidebar, click on "Groups" and then "My Groups". | ||
| * At right, a list of all the groups associated with your account will appear. | ||
| * In the "Name" column, click on the group name you want to add members to. | ||
| * From the "Group Properties" page, select the tab "Members". | ||
| * At upper right, use the "Add member" box to find and add group members. | ||
| * In the "Permissions" column, make other group members "Owners" using the check boxes. | ||
|
|
||
| The next time these users enter the Notebook Aspect, they will be able to access files shared with the group. | ||
|
|
||
|
|
||
|
|
||
| Set directory permissions | ||
| ========================= | ||
|
|
||
| The point of creating a closed group is to permit group members to access privately shared files. | ||
|
|
||
| Shared files are not managed via the Comanage webpage; use the terminal command line in the Notebook Aspect. | ||
|
|
||
| These instructions are not all unique to the Rubin Science Platform or JupyterLab; | ||
| some are generic processes for manipulating directory permissions in Unix-like operating systems. | ||
|
|
||
| Instructions for creating and sharing a directory with a group: | ||
|
|
||
| * In a browser, navigate to `data.lsst.cloud <https://data.lsst.cloud>`_ and log in to the Notebook Aspect. | ||
|
|
||
| * Open a terminal, navigate to ``/home``, and modify the permissions on your home directory to let others access any shared directories within it (see your own username with ``whoami``). | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| cd /home | ||
| chmod o+x <user-name> | ||
|
|
||
| * Navigate to your home directory and create a new directory for sharing. | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| cd ~ | ||
| mkdir <shared-dir-name> | ||
|
|
||
| * Add the group to the new directory and give group members write permissions (``g+w``) and add the "sticky" bit (``s``) so that all files created in the directory are readable by group members. | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| chgrp <group-name> <shared-dir-name> | ||
| chmod g+ws <shared-dir-name> | ||
|
|
||
| * Review the final permissions on the new directory. | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| ls -lah <shared-dir-name> | ||
|
|
||
| The results should resemble the following. | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| drwxrwsr-x 2 <user-name> <group-name> 4.0K <MMM DD HH:SS> <shared-dir-name> | ||
|
|
||
|
|
||
| Files created in this directory will, by default, only be writeable by the user that created them. | ||
| Modify any file to be writeable by any group member with ``chmod g+w <filename>``. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,5 @@ Configuring the Notebook Aspect | |
| shell-configuration | ||
| notebook-user-setups | ||
| user-installs | ||
| groups | ||
| ui-configuration | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.