you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 1 month ago (3 children)

u=rwX,g=rX,o=rX because this won't make every file executable, only folders.

  • source
  • hideshow 3 child comments
  • [–] 2 points 1 month ago (1 child)

    Careful: chmod -X also looks for any existing exec bits:

    $ umask 0
    $ >foo >bar
    $ ls -al foo bar
    -rw-rw-rw- 1 user group 0 Sep 10 00:00 bar
    -rw-rw-rw- 1 user group 0 Sep 10 00:00 foo
    $ chmod o+x foo
    $ ls -al foo bar
    -rw-rw-rw- 1 user group 0 Sep 10 00:00 bar
    -rw-rw-rwx 1 user group 0 Sep 10 00:00 foo
    $ chmod u=rwX,g=rX,o=rX foo bar
    $ ls -al foo bar
    -rw-r--r-- 1 user group 0 Sep 10 00:00 bar
    -rwxr-xr-x 1 user group 0 Sep 10 00:00 foo
    
  • source
  • parent
  • hideshow 1 child comment