<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=Big5" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Les Mikesell wrote:
<blockquote cite="mid45CB2D3D.5050500@gmail.com" type="cite">
  <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:edwardspl@ita.org.mo">edwardspl@ita.org.mo</a> wrote:

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">chmod g+rwx ( What number of g+rwx, eg : ?77 ) /home/edward
        </pre>
      </blockquote>
      <pre wrap="">You can use the symbolic form literally. I think it's easier to
understand. Let the computer do the binary/octal math.
g+rwx means add the read, write, and execute bits for the group.
      </pre>
    </blockquote>
    <pre wrap="">But I want to know what no of g+rwx...
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The + means it is added to the bits already permitted.  Look at them as
groups of 3 bits in binary and take the octal value.

 user   group    other
 rwx    rwx     rwx

You'll start with a home dir having rwx --- ---  so that's 111 000 000
binary or 700 octal.
Add  the group rwx and you get 111 111 000 or 770 octal
  </pre>
</blockquote>
So, g+rwx = 770, right ?<br>
<blockquote cite="mid45CB2D3D.5050500@gmail.com" type="cite">
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">chmod +t ( What number of +t ) /home/edward
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
That's one more bit to the left, 1 000 000 000  binary, so 1000 octal.
Add that to what you have.

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">Same here, you can type it that way and it means add the "sticky" bit.
      </pre>
    </blockquote>
    <pre wrap="">Also want to know...
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Altogether, the octal value for the mode ends up at 1770.  But, as I
said before the computer does a better job of thinking in octal.
  </pre>
</blockquote>
So, +t = 1770, right ?<br>
<br>
Edward.<br>
</body>
</html>