Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
data file can end up owned by root during `sudo -s` #1
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