Women in Technology

Hear us Roar



Article:
  ColdFusion MX on Mac OS X, Part 3
Subject:   Starting JRun and CFMX at boot
Date:   2003-01-13 12:15:31
From:   lolajl
Response to: Starting JRun and CFMX at boot

First, bear with me as I'm about to ask a beginner's question. I'm still feeling my way around Unix, especially when it comes to setting things in Terminal. I'd like to know how to change the permissions for Resources from "drwxrwxrwx" to "drwxr-xr-x" either via Terminal, or via Get Info. I know about chmod, but how does these permission correspond? I'm at work and my "OS X Unleashed" book,as well as my other Unix books, are at home.
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Starting JRun and CFMX at boot
    2003-01-13 16:18:31  dicklacara [View]

    Each rwx triplet (owner, group, other) is represented by the binary bits 421

    r=4
    w=2
    x=1

    When you specify a charmod setting there is 1 digit for each triplet which is the sum of the bits in that triplet

    So, say the owner has Read and write privileges

    r=4
    w=2
    x=0

    The sum of the bits is 4+2+0 = 6, so the Owner Triplet is 6

    Now, lets say the group has read priveges and execute privileges:

    r=4
    w=0
    x=1

    or 4+0+1= 5. The second (group) triplet is 5.

    Finally, other users have execute only privileges:

    r=0
    w=0
    x=1

    or 0+0+1 = 1, the other triplet value is one

    so, you combine the values for the triplets for Owner, Group and other to give:

    chmod 651 .....

    Common values are:

    777 everybody has rwx

    755 Owner has rwx, everyone else has r-x

    Dick
    • Starting JRun and CFMX at boot
      2003-01-14 09:22:55  lolajl [View]

      Thanks!