DISQUS

Tech-Recipes: Set UNIX file access permissions with chmod | UNIX | Tech-Recipes

  • Anonymous · 2 years ago
    You missed out something simple! The "=" operator can force permissions regardless of state, just like with octal. So, for instance:

    chmod o=rwx file

    will make "other" read/write/execute regardless of current permission state.

    + & - operators are often not worth using unless you're using a+ or a-