Migrating from NFSv3 to v4 - NFSv4 ACL/permission confusion

Joe Auty joe at netmusician.org
Mon Dec 6 22:58:34 UTC 2010


Edward Tomasz Napierała wrote:
> Wiadomość napisana przez Joe Auty w dniu 2010-12-06, o godz. 23:47:
>> Edward Tomasz Napierała wrote:
>>> Wiadomość napisana przez Joe Auty w dniu 2010-12-06, o godz. 23:34:
>>>> Edward Tomasz Napierała wrote:
>>>>> Wiadomość napisana przez Joe Auty w dniu 2010-12-06, o godz. 23:02:
>>>>>>> Also, make sure "ls -l" is not reporting "nobody". If the user/group
>>>>>>> name mapping isn't working, most Setattr Ops will fail.
>>>>>>>
>>>>>>> rick
>>>>>>>
>>>>>> Thanks Rick,
>>>>>>
>>>>>> I will look into this, but for the benefit of my own education, are
>>>>>> NFSv4 ACLs supposed to be intertwined or separate from standard Unix
>>>>>> permissions? I'm confused as to how the ACLs have changed from v3, or if
>>>>>> this is even relevant to my problem not really knowing how they work and
>>>>>> why they are needed :)
>>>>> Both POSIX.1e and NFSv4 ACLs are similar in that they both influence
>>>>> the mode, and get influenced by it.  In other words, when you change
>>>>> the ACL, the mode gets updated; when you change the mode, the ACL gets
>>>>> updated.  Also, for both POSIX.1e and NFSv4 ACLs, file mode continues
>>>>> to work as usual if you ignore the ACL part.
>>>>>
>>>> Thanks for this!
>>>>
>>>> So, if I want to just ignore the NFSv4 ACLs on account of not needing
>>>> anything beyond the POSIX ACLs, I'm free to do so without consequence...
>>>> Correct?
>>> If you want to just ignore the ACLs on account of not needing anything
>>> beyond the file mode, aka standard UNIX permissions.  Filesystems
>>> support either POSIX.1e ACLs, or NFSv4 ACLs, not both.  I didn't
>>> actually test NFSv4, but I guess it uses NFSv4 ACLs, not POSIX.1e.
>>> ZFS supports NFSv4 only.  UFS supports either POSIX.1e or NFSv4,
>>> depending on the mount options.
>> I might be misunderstanding you, but ZFS definitely supports NFSv3
>> because I've been mounting and using NFS volumes via this protocol
>> version for quite some time now without incident.
>
> Let me rephrase: ZFS only supports NFSv4 ACLs, it does not support
> POSIX.1e ACLs.  Since ACLs are not a mandatory element of filesystem,
> sharing ZFS over NFSv3 works, but the client has no way to manipulate
> the ACLs or retrieve them.  When sharing ZFS over NFSv4, the NFSv4 ACLs
> should work, I guess.
>
> Still, I'm not sure if the problem is actually ACL-related.
>

Well, since I'm not setting any or have any need to use them since I've
been just fine with POSIX ACLs, they may be irrelevant. I only brought
them up because I'm flying blind with trying to figure out my problem
here, and in Googling I came across stuff related to the NFSv4 ACLs,
which is one obvious change between v3 and v4.

I'm going to try my same test on my CentOS box and will report back.

Thanks all of your for your patience with this!


-- 
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.
www.netmusician.org <http://www.netmusician.org>
joe at netmusician.org <mailto:joe at netmusician.org>



More information about the freebsd-fs mailing list