Skip to content

Commit

Permalink
change permission to 777
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianhao-Gu committed Sep 13, 2024
1 parent 4bc08b0 commit c07b3dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jupyterhub_config/custom_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def start(self):
# Ensure the system user exists
self._ensure_system_user(username, group='jupyterhub')

# Ensure the user directory has correct permissions
# Ensure the user directory exists
self._ensure_user_directory(user_dir, username)

# Ensure the user's workspace has the correct permissions
Expand Down Expand Up @@ -219,5 +219,5 @@ def _ensure_workspace_permission(self, user_dir: Path, username: str):
subprocess.run(['sudo', 'usermod', '-aG', group_name, 'spark_user'], check=True)

Check warning on line 219 in src/jupyterhub_config/custom_spawner.py

View check run for this annotation

Codecov / codecov/patch

src/jupyterhub_config/custom_spawner.py#L218-L219

Added lines #L218 - L219 were not covered by tests

# TODO: Set directory permissions to 700 or 750
# Set directory permissions to 770: Owner (rwx), Group (rwx), Others (---)
subprocess.run(['sudo', 'chmod', '-R', '770', user_dir], check=True)
# Set directory permissions to 777: Owner (rwx), Group (rwx), Others (rwx)
subprocess.run(['sudo', 'chmod', '-R', '777', user_dir], check=True)

Check warning on line 223 in src/jupyterhub_config/custom_spawner.py

View check run for this annotation

Codecov / codecov/patch

src/jupyterhub_config/custom_spawner.py#L223

Added line #L223 was not covered by tests

0 comments on commit c07b3dd

Please sign in to comment.