System Administration Guide: Security Services

ProcedureHow to Delete ACL Entries From a File

  1. Delete ACL entries from a file.


    % setfacl -d acl-entry-list  filename ... 
    
    -d

    Deletes the specified ACL entries.

    acl-entry-list

    Specifies the list of ACL entries (without specifying the permissions) to delete from the file or directory. You can only delete ACL entries and default ACL entries for specific users and groups. Table 7–7 and Table 7–8 show the valid ACL entries.

    filename ...

    Specifies one or more files or directories, separated by a space.

    Alternatively, you can use the setfacl -s command to delete all the ACL entries on a file and replace them with the new ACL entries that are specified.

  2. Verify that the ACL entries were deleted from the file.


    % getfacl filename
    

Example 7–10 Deleting ACL Entries on a File

In the following example, the user anusha is deleted from the ch4.sgm file.


% setfacl -d user:anusha ch4.sgm