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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

getfacl<br />

Options<br />

Examples<br />

–a Displays the access ACL entries. This is the default if -a, -d, or -f is not<br />

specified.<br />

–c Displays each ACL entry, using commas to separate the ACL entries<br />

instead of newlines, which is the default. Does not display the header.<br />

–d Displays the directory default ACL entries. If the file is not a directory, a<br />

warning is issued.<br />

–e user<br />

Displays only the ACL entries for the specified types of access control lists<br />

(-a, -d, -f) which affects the specified user’s access. If users look at the<br />

output, they may be able to determine why the access is granted or denied.<br />

The user can be an UID or username. The output includes the user’s entry,<br />

if it exists, as well as entries for any group to which the user is connected.<br />

–f Displays the file default ACL entries. If the file is not a directory, a warning<br />

is issued.<br />

–h Does not resolve the symbolic link. (ACLs are not allowed on symbolic<br />

links, so the file will not have anything displayed.)<br />

–m Specifies that the comment header (the first three lines of each file’s output)<br />

is not to be displayed.<br />

–o Displays only the extended ACL entries. Does not display the base ACL<br />

entries.<br />

–q Quiet mode. Suppresses the warning messages and gives a successful<br />

return code if there are no other errors.<br />

–s Skips files that only have the base ACL entries (such as owner, group,<br />

other). Only files that have the extended ACL entries are displayed.<br />

1. To display access ACL information for file file, issue:<br />

getfacl file<br />

Where the following is a sample of the output::<br />

#file: file<br />

#owner: WELLIE<br />

#group: SYS<br />

user::rwx

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

Saved successfully!

Ooh no, something went wrong!