Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions docs/guides/notebooks/configuration/groups.rst
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.

* Leave the checkbox next to "Require All for Nested Memberships" unchecked; this can be changed later if nested sub-groups are created.

* Click the blue "Add" button.


The next time you enter the Notebook Aspect, this group will be accessible.


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>``.
1 change: 1 addition & 0 deletions docs/guides/notebooks/configuration/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ Configuring the Notebook Aspect
shell-configuration
notebook-user-setups
user-installs
groups
ui-configuration
8 changes: 8 additions & 0 deletions docs/updates/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Updates
#######

April 28 2025
=============

The capability for users to create groups and set directory permissions to enable
private file sharing between group members now exists,
see :ref:`how to create user groups <user-group-create>`.


March 6 2025
============

Expand Down
1 change: 1 addition & 0 deletions documenteer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ ignore = [
'https://www.star.bris.ac.uk/~mbt/topcat/', # MLG added; frequently times out
'http://www.star.bris.ac.uk/~mbt/topcat/', # MLG added; frequently times out
'http://www.star.bris.ac.uk/~mbt/topcat/sun253/sun253.html#SyntheticColumnQueryWindow', # MLG added; frequently times out
'https://www.lsst.org/scientists/international-drh-list', # MLG added; was timing out
]