Date: Thu, 14 May 1998 06:17:41 -0700 (PDT) From: josh@quick.net To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: docs/6634: chmod(1): reword absolute mode Message-ID: <199805141317.GAA20598@newport-1-12.quick.net>
next in thread | raw e-mail | index | archive | help
>Number: 6634 >Category: docs >Synopsis: chmod(1): reword absolute mode >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 14 06:20:01 PDT 1998 >Last-Modified: >Originator: Josh Gilliam >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: src/bin/chmod/chmod.1 1.9 >Description: reword absolute mode >How-To-Repeat: >Fix: --- src/bin/chmod/chmod.1~ Sat May 9 01:45:39 1998 +++ src/bin/chmod/chmod.1 Thu May 14 05:53:48 1998 @@ -103,9 +103,8 @@ utility exits 0 on success, and >0 if an error occurs. .Sh MODES Modes may be absolute or symbolic. -An absolute mode is an octal number constructed by -.Ar or-ing -the following values: +An absolute mode is an octal number constructed from the sum of +one or more of the following values: .Pp .Bl -tag -width 6n -compact -offset indent .It Li 4000 @@ -123,15 +122,24 @@ .It Li 0200 write by owner .It Li 0100 -execute (or search for directories) by owner -.It Li 0070 -read, write, execute/search by group -.It Li 0007 -read, write, execute/search by others +execute (or search in directory) by owner +.It Li 0040 +read by group +.It Li 0020 +write by group +.It Li 0010 +execute (search) by group +.It Li 0004 +read by others +.It Li 0002 +write by others +.It Li 0001 +execute (search) by others .El .Pp -The read, write, and execute/search values for group and others -are encoded as described for owner. +For example, the absolute mode that permits read, write, and +execute by owner, read and execute by group, and read and +execute by others is 755 (400+200+100+40+10+4+1). .Pp The symbolic mode is described by the following grammar: .Bd -literal -offset indent >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805141317.GAA20598>