From fcd3401eceb1a3ffb9b0e406a28a58c908f8356e Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Thu, 9 Aug 2001 17:29:46 +0000 Subject: [PATCH] o Remove some misleading and incomplete information about search permissions. o Add a reference to intro(2) where it is properly documented. Reviewed by: bde MFC after: 3 days --- lib/libc/sys/access.2 | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/libc/sys/access.2 b/lib/libc/sys/access.2 index 6a11a00c24b8..e48705d0d692 100644 --- a/lib/libc/sys/access.2 +++ b/lib/libc/sys/access.2 @@ -63,17 +63,19 @@ for write permission and .Dv X_OK for execute/search permission) or the existence test, .Dv F_OK . -All components of the pathname -.Fa path -are checked for access permissions (including -.Dv F_OK ) . +.Pp +For additional information, see the +.Dq File Access Permission +section of +.Xr intro 2 . .Pp The real user ID is used in place of the effective user ID and the real group access list (including the real group ID) are used in place of the effective ID for verifying permission. .Pp -Even if a process has appropriate privileges and indicates success for +Even if a process's real user has appropriate privileges +and indicates success for .Dv X_OK , the file may not actually have execute permission bits set. Likewise for @@ -106,12 +108,7 @@ file presently being executed. .It Bq Er EACCES Permission bits of the file mode do not permit the requested access, or search permission is denied on a component of the -path prefix. The owner of a file has permission checked with -respect to the ``owner'' read, write, and execute mode bits, -members of the file's group other than the owner have permission -checked with respect to the ``group'' mode bits, and all -others have permissions checked with respect to the ``other'' -mode bits. +path prefix. .It Bq Er EFAULT .Fa Path points outside the process's allocated address space.