LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-31-2017, 01:43 PM   #1
sinuhe
Member
 
Registered: Apr 2010
Location: Utah
Distribution: Slackware
Posts: 53

Rep: Reputation: 9
NFS ACL security descriptor


Is there a way to remove the security descriptor once added? Think "setfacl -b" if using POSIX(-proposed) FACLs.

Linux NFSv4 mount:
Code:
$ mkdir foo
NetApp:
Code:
host::> vserver security file-directory show -vserver bar -path /vol/share/foo

                Vserver: bar
              File Path: /vol/share/foo
      File Inode Number: 97
         Security Style: unix
        Effective Style: unix
         DOS Attributes: 10
 DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
           UNIX User Id: 0
          UNIX Group Id: 66666
         UNIX Mode Bits: 2755
 UNIX Mode Bits in Text: rwxr-sr-x
                   ACLs: -
Edit foo with nfs4_editfacl and save (without changes):
Code:
host::> vserver security file-directory show -vserver bar -path /vol/share/foo

                Vserver: bar
              File Path: /vol/share/foo
      File Inode Number: 97
         Security Style: unix
        Effective Style: unix
         DOS Attributes: 10
 DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
           UNIX User Id: 0
          UNIX Group Id: 66666
         UNIX Mode Bits: 2755
 UNIX Mode Bits in Text: rwxr-sr-x
                   ACLs: NFSV4 Security Descriptor
                         Control:0x8014
                         DACL - ACEs
                           ALLOW-OWNER@-0x1601ff
                           ALLOW-GROUP@-0x1200a9-IG
                           ALLOW-EVERYONE@-0x1200a9
Everything but one ACE can be removed, but the last ACE cannot.

Is there a way to identify with nfs4_getfacl, or another tool, whether an actual security descriptor exists? nfs4_getfacl seems unable to distinguish the above, but instead assumes the ACL with the descriptor is there or not.

Last edited by sinuhe; 10-31-2017 at 01:47 PM.
 
Old 01-10-2018, 02:41 PM   #2
sinuhe
Member
 
Registered: Apr 2010
Location: Utah
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 9
It appears that the answer is no. NTFS file descriptors can be individually removed by applying a configuration file-based ACE removal, but this is not supported with NFS. The last (EVERYONE@) ACE always refuses to remove. Using 'nfs4_setfacl -X', mimicking the NTFS approach, fails with the same result. This is confirmed by NetApp support.
 
Old 01-10-2018, 02:42 PM   #3
sinuhe
Member
 
Registered: Apr 2010
Location: Utah
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 9
Unless there's a mixed mode configuration I'm unaware of, I'd say NFSv4 FACLs on NetApp is a botch with mixed mounts.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux NFS client <--> Leopard NFS server ACL support tplessers Linux - Networking 0 02-17-2010 04:28 AM
NFS share and ACL kopla Debian 2 11-05-2009 10:11 AM
squid acl with NFS & SAMBA zoltans Linux - Server 2 06-11-2008 10:46 AM
ACL's being ignored when using NFS uk_dave Linux - General 3 07-01-2007 01:32 PM
Using ACL on an nfs exported volume rajsand Linux - Newbie 0 07-14-2006 08:21 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration