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.

setfacl<br />

Localization<br />

Exit Values<br />

Portability<br />

8. RACF recommends placing ACLs on directories, rather than on each file in a<br />

directory. To find and remove all of the extended ACL entries for user1 that are<br />

associated with only the files in directory Haunted:<br />

setfacl -x user:user1 $(find Haunted -type f -acl_user user1)<br />

Even if the setfacl command is successful in removing access from user1,<br />

user1 might still be able to obtain access to the files in directory Haunted based<br />

on the file permission bits, assuming the user has search permission for<br />

Haunted.<br />

setfacl uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Success.<br />

1 Failure due to any of the following:<br />

v Incorrect command-line option.<br />

v Too few arguments on the command line.<br />

v An attempt was made to read from stdin in more than one place.<br />

v An attempt was made to combine setfacl operations that are mutually<br />

exclusive.<br />

2 Failure due to any of the following:<br />

v A specified pathname does not exist.<br />

v An error occurred while attempting to read the entries file.<br />

v An attempt was made to alter the file default ACL or directory default<br />

ACL for a pathname that is not a directory.<br />

3 Failure due to any of the following:<br />

v Unable to delete all extended ACL entries from a pathname.<br />

v Unable to set or modify ACL entries for a pathname.<br />

v Improper syntax of ACL entries.<br />

v An invalid ACL was specified.<br />

v Unable to allocate enough memory.<br />

v Unable to determine the PATH_MAX.<br />

v Unable to open the entries file for reading.<br />

v The entries file is empty.<br />

An approved P<strong>OS</strong>IX standard does not exist for setfacl.<br />

Related Information<br />

chmod, find, getfacl, ls, filetest, pax, test<br />

548 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!