code: public static int chmod(String filename, String perm
                            ) throws IOException, InterruptedException {
      return chmod(filename, perm, false);
    }
docs: Change the permissions on a filename.
  @param filename the name of the file to change
  @param perm the permission string
  @return the exit code from the command
  @throws IOException
  @throws InterruptedException