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

data file can end up owned by root during `sudo -s` #1

Closed
FauxFaux opened this issue Sep 4, 2019 · 0 comments

Comments

@FauxFaux
Copy link
Owner

commented Sep 4, 2019

The data file is rewritten as the "effective user", it should probably be "maintained".

When you switch back to your real user, you can now no-longer access the data file, sometimes. I don't have exact reproduction steps from memory.

Alternatively, we could "derive" the user from the home directory? Or ignore umasks on purpose? Almost certainly just "maintain" is better. Or detect root / euid, and then do some magic? Maybe we should ignore umasks and go ultra-private instead (like ~/.ssh).

@FauxFaux FauxFaux closed this in aa10b2f Sep 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.