News for hackers. Stuff that matters.
Re:Chmod -x chmod by CUViper on Saturday October 09, 2010 @09:55PM (#1776381)
I agree that this is easiest, and I'm surprised that the article calls it "hardcore" (slides 38-39). But it does bring to mind a more devious challenge: Someone ran "chmod -x ld.so"...
Re:Chmod -x chmod by xtacy on Sunday October 10, 2010 @12:39AM (#1776563)
What about:

  find / -type f -perm +x | xargs chmod -x
EDIT: chmod has to be the last program to be chmodded, in the above list.. :-)
Re:Chmod -x chmod by tange on Sunday October 10, 2010 @10:33AM (#1777122)
Your use of xargs can lead to nasty surprises because of the separator problem http://en.wikipedia.org/wiki/Xargs#The_separator_problem

GNU Parallel http://www.gnu.org/software/parallel/ does not have that problem.

Watch the intro video for GNU Parallel: http://www.youtube.com/watch?v=OpaiGYxkSuQ

Re:Chmod -x chmod by ralph on Monday October 11, 2010 @08:36AM (#1779504)
GNU Parallel isn't needed to avoid this, using find's -print0 and xargs's -0 would suffice. The advert is unwarranted.