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.

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

export<br />

Management of <strong>GPFS</strong> access control lists (ACLs) <strong>and</strong> NFS export includes these topics:<br />

v “Traditional <strong>GPFS</strong> ACL administration”<br />

v “NFS V4 ACL administration” on page 48<br />

v “NFS <strong>and</strong> <strong>GPFS</strong>” on page 52<br />

Traditional <strong>GPFS</strong> ACL administration<br />

Access control protects directories <strong>and</strong> files by providing a means of specifying who should be granted<br />

access. Support for NFS V4 access control lists (ACLs) has been added to traditional ACL support. NFS<br />

V4 ACLs are very different than the traditional ones. If you are using NFS V4 ACLs, see “NFS V4 ACL<br />

administration” on page 48.<br />

Both ACL types may coexist in a single <strong>GPFS</strong> file system.<br />

Traditional <strong>GPFS</strong> ACLs are based on the POSIX model. Traditional <strong>GPFS</strong> access control lists (ACLs)<br />

extend the base permissions, or st<strong>and</strong>ard file access modes, of read (r), write (w), <strong>and</strong> execute (x) beyond<br />

the three categories of file owner, file group, <strong>and</strong> other users, to allow the definition of additional users <strong>and</strong><br />

user groups. In addition, <strong>GPFS</strong> introduces a fourth access mode, control (c), which can be used to govern<br />

who can manage the ACL itself.<br />

In this way, a traditional ACL can be created that looks like this:<br />

#owner:jesmith<br />

#group:team_A<br />

user::rwxc<br />

group::rwx-<br />

other::--x-<br />

mask::rwxc<br />

user:alpha:r-xc<br />

group:audit:r-x-<br />

group:system:rwx-<br />

In this ACL:<br />

v The first two lines are comments showing the file’s owner, jesmith, <strong>and</strong> group name, team_A<br />

v The next three lines contain the base permissions for the file. These three entries are the minimum<br />

necessary for a <strong>GPFS</strong> ACL:<br />

1. The permissions set for the file owner (user), jesmith<br />

2. The permissions set for the owner’s group, team_A<br />

3. The permissions set for other groups or users outside the owner’s group <strong>and</strong> not belonging to any<br />

named entry<br />

v The next line, with an entry type of mask, contains the maximum permissions allowed for any entries<br />

other than the owner (the user entry) <strong>and</strong> those covered by other in the ACL.<br />

v The last three lines contain additional entries for specific users <strong>and</strong> groups. These permissions are<br />

limited by those specified in the mask entry, but you may specify any number of additional entries up to<br />

a memory page (approximately 4 K) in size.<br />

Traditional <strong>GPFS</strong> ACLs are fully compatible with the base operating system permission set. Any change to<br />

the base permissions, using the chmod comm<strong>and</strong>, for example, modifies the corresponding <strong>GPFS</strong> ACL as<br />

well. Similarly, any change to the <strong>GPFS</strong> ACL is reflected in the output of comm<strong>and</strong>s such as ls -l. Note<br />

that the control (c) permission is <strong>GPFS</strong> specific. There is no comparable support in the base operating<br />

system comm<strong>and</strong>s. As a result, the (c) permission is visible only with the <strong>GPFS</strong> ACL comm<strong>and</strong>s.<br />

© Copyright IBM Corp. 1998, 2006 45

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

Saved successfully!

Ooh no, something went wrong!