Bug#617508: linux-image-2.6.32-5-amd64: File permissions wrong on NFS4 mounts, but OK after explicit stat
We initially experied this bug on a RHEL6 server and CentOS 5.5 clients.
See also my Red Hat bugzilla report:
I can reproduce this with:
- Debian Lenny clients against the RHEL6 server
- Debian Squeeze clients against the RHEL6 server
- RHEL 5.5 and 5.6 clients against the RHEL6 server
- all these clients against a squeeze server
- all these clients against a squeeze server running 2.6.38-rc6-amd64
We basically have a ksh script that appends a line to a world-writable
file. This world-writable
file lives on an (automounted, but this doesn't seem to be relevant)
Very frequently this script fails with the error that it has no
permissions to create the file.
Rerunning the script triggers the same error condition. When we run a
stat against the
world-writable file and then rerun the script, the script works and
appends the line.
After waiting a while, the same error appears when running the script.
stat (or ls -l ) always "fixes" it for a while.
To reproduce I've set up the test server like this:
Very frequently we get an error stating that the file can not be created.
Running a stat or ls -l on the file will show the correct permissions
and owner/group. After
running the stat, the script will work OK. After a while, the error will
I'm not sure this is an NFSv4 client or server bug.
I also tried it with linux-image-2.6.38-rc6-amd64,
2.6.38~rc6-1~experimental.1 on the server but no change.
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org