16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

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.

Options<br />

Extended ACL entries have the following format:<br />

[d[efault]: | f[default]:]u[ser]:uid:[+|^]perm<br />

[d[efault]: | f[default]:]g[roup]:gid:[+|^]perm<br />

where:<br />

d[efault] If specified, extended ACL refers to directory default ACL<br />

f[default] If specified, extended ACL refers to file default ACL<br />

u[ser] Extended ACL refers to a particular numeric user id (UID) or user<br />

name<br />

g[roup] Extended ACL refers to a particular numeric group id (GID) or group<br />

name<br />

uid User name or numeric user ID (UID)<br />

gid Group name, or numeric group ID (GID)<br />

perm Permissions specified either in absolute form (string rwx with - as a<br />

placeholder or octal form), or in relative format (using the + or^<br />

modifiers).<br />

Rule: For relative permission settings, only one of + or ^ is allowed<br />

per ACL entry. When using relative permissions, you must have at<br />

least one of r, w, or x. For example, +rw or ^rwx.<br />

The first field of an ACL entry may specify the type of ACL (access, directory<br />

default, or file default) that will be processed. If the type is not specified, the<br />

operation applies only to the access ACL. If you are updating the ACL entries, you<br />

can specify the base ACL entries; however, specifying the base ACL entries may<br />

cause the file or directory’s permission bits to change if what is specified is different<br />

than the current settings.<br />

If the permissions are specified in relative format for an ACL entry that does not<br />

currently exist, then the permissions will be assigned as though they were given in<br />

absolute form. Any permissions that were not specified will default to no permission.<br />

For instance, if an extended ACL entry is given as follows to be updated:<br />

user:BILLYJC:+rw<br />

and user entry BILLYJC does not currently exist, then the resulting entry will be:<br />

user:BILLYJC:rw-<br />

Similiarly, if you try to remove the permissions from an extended ACL entry that<br />

does not exist, the resulting permissions will be:<br />

---<br />

That is, no permission.<br />

For additional information about ACLs and ACL entries, see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong><br />

<strong>Services</strong> Planning.<br />

–a Abort setfacl processing if one of the following errors or warnings occurs:<br />

1. During the attempt to change an ACL for a file or directory, setfacl<br />

performs a stat(), and the stat() fails with a unique reason code.<br />

setfacl<br />

Chapter 2. Shell command descriptions 545

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

Saved successfully!

Ooh no, something went wrong!