I have a Redhat 6.0 system (SELinux enabled), with a NFS volume mounted at /myvolume.
ls -la /myvolume says it has owner "nobody" and group "nobody".
On this system I have Apache running as "apache" user and "apache" group.
Apache runs a python script through mod_wsgi. This script creates a temporary directory (using tempfile.mkdtemp), creates some files in it and then moves the whole directory inside /myvolume.
After the script has done its thing, the files it created have owner "nodody" and group "nobody" and permission mask is "rwx------" for all of them.
I've verified that my own user can't access those files unless I use "sudo", while apache user can access them.
Why does this happens? Is something related to SELinux, Unix permissions, NFS volumes or nodoby user? Why trying to "chown" any file in /myvolume gives an "invalid argument" error?