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:
parent
30c1821d70
commit
222082aa93
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=13364
1 changed files with 8 additions and 7 deletions
|
@ -151,14 +151,15 @@
|
|||
|
||||
<screen>-rw-r--r--</screen>
|
||||
|
||||
<para>The first character, from left to right, is a special character
|
||||
that tells if this is a regular file, a directory, a special
|
||||
<para>The first (leftmost) character
|
||||
tells if this file is a regular file, a directory, a special
|
||||
character or block device, a socket, or any other special
|
||||
pseudo-file device. The next three characters, designated as
|
||||
<literal>rw-</literal> gives the permissions for the owner of the
|
||||
file. The next three characters, <literal>r--</literal> gives the
|
||||
pseudo-file device. In this case, the <literal>-</literal>
|
||||
indicates a regular file. The next three characters,
|
||||
<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
|
||||
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.
|
||||
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
|
||||
|
@ -188,7 +189,7 @@
|
|||
<emphasis>and</emphasis> execute permissions to the directory
|
||||
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
|
||||
directories. If you want more information on file permissions and
|
||||
how to set them, be sure to look at the &man.chmod.1; man
|
||||
|
|
Loading…
Reference in a new issue