Skip to content
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

Fix non-writable home directory #169

Merged
merged 4 commits into from
Apr 24, 2020
Merged

Fix non-writable home directory #169

merged 4 commits into from
Apr 24, 2020

Conversation

JonathonReinhart
Copy link
Owner

Fixes #168.

Prior to this change, if the home directory already existed (because the
scuba workdir was bind-mounted somewhere underneath it), then the home
directory would remain owned by root.

Removing this check ensures that the chown() always happens.

The only odd thing remaining is that any other directories from $HOME
down to the workdir will remain owned as root.

This fixes #168
This is an attempt to ensure #168 is covered by a test. This only happens
when scuba is run from somewhere under /home/$username, so we issue a
warning if the test is unable to do that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't create files in home directory if working directory is under home
1 participant