Fix up a paragraph on file permissions, also tidy up some awkward

wording.

Based on the patch from the PR.

PR:		38976
Submitted by:	Marc Fonvieille <marc@blackend.org>
This commit is contained in:
Bruce A. Mah 2002-06-11 01:00:53 +00:00
parent 30c1821d70
commit 222082aa93
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=13364

View file

@ -151,14 +151,15 @@
<screen>-rw-r--r--</screen> <screen>-rw-r--r--</screen>
<para>The first character, from left to right, is a special character <para>The first (leftmost) character
that tells if this is a regular file, a directory, a special tells if this file is a regular file, a directory, a special
character or block device, a socket, or any other special character or block device, a socket, or any other special
pseudo-file device. The next three characters, designated as pseudo-file device. In this case, the <literal>-</literal>
<literal>rw-</literal> gives the permissions for the owner of the indicates a regular file. The next three characters,
file. The next three characters, <literal>r--</literal> gives the <literal>rw-</literal> in this example, give the permissions for the owner of the
file. The next three characters, <literal>r--</literal>, give the
permissions for the group that the file belongs to. The final three permissions for the group that the file belongs to. The final three
characters, <literal>r--</literal>, gives the permissions for the characters, <literal>r--</literal>, give the permissions for the
rest of the world. A dash means that the permission is turned off. rest of the world. A dash means that the permission is turned off.
In the case of this file, the permissions are set so the owner can In the case of this file, the permissions are set so the owner can
read and write to the file, the group can read the file, and the read and write to the file, the group can read the file, and the
@ -188,7 +189,7 @@
<emphasis>and</emphasis> execute permissions to the directory <emphasis>and</emphasis> execute permissions to the directory
containing the file.</para> containing the file.</para>
<para>There are more to permissions, but they are primarily used in <para>There are more permissions, but they are primarily used in
special circumstances such as setuid binaries and sticky special circumstances such as setuid binaries and sticky
directories. If you want more information on file permissions and directories. If you want more information on file permissions and
how to set them, be sure to look at the &man.chmod.1; man how to set them, be sure to look at the &man.chmod.1; man