g

getaccess(1)

getaccess(1)

2A ®le 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 ®le1 using the ®le'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 ®les 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 ®les 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).

Section 1324

− 2 −

HP-UX Release 11i: December 2000