IS_ABLE
Section: User Commands (1)
Updated: Jan 4, 1991
Index
Return to Main Contents
NAME
is_able - Check for write/read-ability of a file.
SYNOPSIS
is_able
file {w|g|S|s} {r|w|s|B|b}
DESCRIPTION
is_able
can check a file to see if a file is either write/read-able by group or by
all, or if it is setuid/setgid, or a combination of these. A first argument
of "w" or "g" determines whether it is to be world or group writable,
respectively, a "s" or "S" allows checking of SUID or SGID files, respectively.
A second argument of "r", "w", or "s", stands for readability, writeability,
or set[ug]id-ness, respectively; a "B" and a "b" stand for read and write,
and set[ug]id and write, respectively.
is_able
with a write option also checks the parent directories, if a complete path is
given, for writeability.
BUGS
The Andrew File System, or Mach, or the combination of the two, apparently
plays games with stat(), the way I get the file info, so it can report things
as writable, when they aren't.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 23:44:35 GMT, February 06, 2023