chmod recursively?

Discussion in 'macOS' started by lynkynpark86, May 27, 2011.

  1. lynkynpark86 macrumors 6502

    #1
    If there a way to "chmod 777" recursively, like the -r option on rm?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    I'm not on a Mac right now. But "man chmod" on the Solaris server I am logged into says

    " -R Recursively descends through directory arguments, set-
    ting the mode for each file as described above. When
    symbolic links are encountered, the mode of the target
    file is changed, but no recursion takes place."

    Note that's -R not -r.
     
  3. lynkynpark86 thread starter macrumors 6502

    #3
    -R on OSX 10.6 says: "Change the modes of the file hierarchies rooted in the files instead of just the files themselves."

    Is this the same thing? Solaris is unix-like, so it should be the same thing, right?
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Solaris is not unix-like. It is Unix. Linux is unix-like. And yes, the above is a different way of stating the same thing in less plain, but still understandable, English.
     

Share This Page