I was writing some scripts to map the Unix access modes to the access flags in the NFS ACCESS Reply. I have run these scripts on Linux and Solaris machines and the results were not the same. If I have some C program which opens this directory in a write mode exported by an NFS server it succeeds, if the server is Solaris, but fails if the server is Linux. If I have write access on the directory, I would expect to see write bit set for that directory in the ACCESS reply. Programs like mkdir or cd require execute and write access to complete their operations, but a normal open with write mode should succeed in either case. I was more concerned about the differences in the implementation of ACCESS in two different servers. Thanks Dilip Kumar On Thu, Aug 28, 2008 at 11:54 AM, J. Bruce Fields <bfields@xxxxxxxxxxxx> wrote: > On Thu, Aug 28, 2008 at 10:52:07AM -0700, Dilip Kumar wrote: >> Do you see this issue on your version too? Not sure if there is a >> patch already addressing this issue. > > Hm. It looks like it may just be this: > > static struct accessmap nfs3_diraccess[] = { > { NFS3_ACCESS_READ, MAY_READ }, > { NFS3_ACCESS_LOOKUP, MAY_EXEC }, > { NFS3_ACCESS_MODIFY, MAY_EXEC|MAY_WRITE|MAY_TRUNC }, > { NFS3_ACCESS_EXTEND, MAY_EXEC|MAY_WRITE }, > { NFS3_ACCESS_DELETE, MAY_REMOVE }, > > { 0, 0 } > }; > > So it doesn't claim write is allowed unless exec is also allowed. > > I think that's actually how the local filesystem behaves--is there > any operation you can do locally with only write permissions? > > Why is this behavior a problem for you, anyway? > > --b. > -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html