29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

changed by using the mmputacl or mmeditacl comm<strong>and</strong> to assign a new ACL or by the mmdelacl<br />

comm<strong>and</strong> (causing the permissions to revert to the mode which is in effect a POSIX ACL). At any point in<br />

time, only a single ACL can be associated with a file. Access evaluation is done as required by the ACL<br />

type associated with the file.<br />

NFS V4 ACLs are represented in a completely different format than traditional ACLs. For detailed<br />

information on NFS V4 <strong>and</strong> its ACLs, refer to the paper, NFS Version 4 Protocol <strong>and</strong> other information<br />

found at: www.nfsv4.org.<br />

In the case of NFS V4 ACLs, there is no concept of a default ACL. Instead, there is a single ACL <strong>and</strong> the<br />

individual ACL entries can be flagged as being inherited (either by files, directories, both, or neither).<br />

Consequently, specifying the -d flag on the mmputacl comm<strong>and</strong> for an NFS V4 ACL is an error.<br />

NFS V4 ACL Syntax<br />

An NFS V4 ACL consists of a list of ACL entries. Where traditional ACLs can display one entry per line,<br />

the <strong>GPFS</strong> representation of NFS V4 ACL entries are three lines each, due to the increased number of<br />

available permissions beyond the traditional rwxc.<br />

The first line has several parts separated by colons (’:’).<br />

v The first part identifies the user or group.<br />

v The second part displays a rwxc translation of the permissions that appear on the subsequent two<br />

lines.<br />

v The third part is the ACL type. NFS V4 provides both an allow <strong>and</strong> deny type.<br />

allow Means to allow (or permit) those permissions that have been selected with an ’X’.<br />

deny Means to not allow (or deny) those permissions that have been selected with an ’X’.<br />

v The fourth <strong>and</strong> final part is a list of flags indicating inheritance.<br />

Valid flag values are:<br />

FileInherit Indicates that the ACL entry should be included in the initial ACL for files created in this<br />

directory.<br />

DirInherit Indicates that the ACL entry should be included in the initial ACL for subdirectories<br />

created in this directory (as well as the current directory).<br />

InheritOnly Indicates that the current ACL entry should NOT apply to the directory, but SHOULD be<br />

included in the initial ACL for objects created in this directory.<br />

As in traditional ACLs, users <strong>and</strong> groups are identified by specifying the type <strong>and</strong> name. For example,<br />

group:staff or user:bin. NFS V4 provides for a set of special names that are not associated with a<br />

specific local UID or GID. These special names are identified with the keyword special followed by the<br />

NFS V4 name. These names are recognized by the fact that they end in with the character ’@’. For<br />

example, special:owner@ refers to the owner of the file, special:group@ the owning group, <strong>and</strong><br />

special:everyone@ applies to all users.<br />

The next two lines provide a list of the available access permissions that may be allowed or denied, based<br />

on the ACL type specified on the first line. A permission is selected using an ’X’. Permissions that are not<br />

specified by the entry should be left marked with ’-’ (minus sign).<br />

These are examples of NFS V4 ACLs.<br />

1. An ACL entry that explicitly allows READ, EXECUTE <strong>and</strong> READ_ATTR to the staff group on a file is<br />

similar to this:<br />

group:staff:r-x-:allow<br />

(X)READ/LIST (-)WRITE/CREATE (-)MKDIR (-)SYNCHRONIZE (-)READ_ACL (X)READ_ATTR (-)READ_NAMED<br />

(-)DELETE (-)DELETE_CHILD (-)CHOWN (X)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED<br />

Chapter 6. Managing <strong>GPFS</strong> access control lists <strong>and</strong> NFS export 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!