-
Notifications
You must be signed in to change notification settings - Fork 92
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
Permission checking does not match Posix behaviour for root #431
Comments
Yes, this is correct - we currently do not support this. A non-root user is assumed for all operations. |
- can be used to test root user - see pytest-dev#431
- can be used to test root user - see pytest-dev#431
- can be used to test root user - see pytest-dev#431
- can be used to test root user - see #431
@ttsalo - please have a look if this is what you need. This basically just allows to set the root user, for which some of the permissions are ignored. |
Thanks, that looks good. Setting the current UID is pretty much what we would need. |
Ok, closing the issue in this case. Please reopen if something does not work as expected. |
I'm trying to simulate file operations performed by root but ran into the following problem:
Permission checking in various operations including mkdir does not match real os behaviour when running as root. Real os ignores filesystem permissions when uid=0 whereas pyfakefs raises permission denied exceptions.
The text was updated successfully, but these errors were encountered: