getaccess.1 (2010 09)
g
getaccess(1) getaccess(1)
2 A file is nonexistent or unreachable (by the caller).
getaccess prints an appropriate mes-
sage to standard error, continues, then returns a value of 2 upon completion.
EXAMPLES
The following command prints the caller’s access rights to file1 using the file’s group
ID instead of the
caller’s effective group
ID and groups list.
getaccess -g@ file1
Here’s how to check access by user
ggd in groups red and 19 to all files in the current directory, with
access rights expressed as octal values.
getaccess -u ggd -g red,19 -n .* *
Here’s how to list access rights for all files under
mydir.
find mydir -print | sort | xargs getaccess
AUTHOR
getaccess was developed by HP.
FILES
/etc/passwd
/etc/group
SEE ALSO
chacl(1), getacl(1), lsacl(1), setacl(1), getaccess(2), glossary(9).
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010