Repository navigation
Fix permissions UX issues with data directories - #538
Merged
Merged
Conversation
data/img directory
data/img directorydata directories
ethanjli
marked this pull request as ready for review
February 25, 2025 00:38
Contributor
Author
|
I tested this and the desired changes seem to work and I didn't notice any regressions, so I will merge this PR now! |
ethanjli
enabled auto-merge
February 25, 2025 01:46
ethanjli
added this pull request to the merge queue
Feb 25, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
As reported in the 2025-01-23 software meeting, currently it's possible to download data via SFTP/SCP from the data directories as the
pi(i.e. non-root) user, but it's not possible to upload data that way; this is a UX regression introduced in v2023.9.0-beta.0 (or one of the alpha prereleases before it). This PR attempts to fix that problem by initializing the relevant directories with ownership by thepiuser (as explicitly set in the Python backend setup script) rather than therootuser (as implicitly done by the Docker daemon's auto-creation of missing bind mount targets). As part of the fix, this PR integrates PlanktoScope/device-backend#74 and PlanktoScope/pallet-standard#88 .This PR also simplifies the setup of directories with correct permissions required by the Python backend, including integration of PlanktoScope/device-backend#75 via PlanktoScope/pallet-standard#88.
TODO:
piuser (or as UID 1000); and test whether it works fine on my laptop that waypiuser (or as UID 1000)