#include <sys/stat.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
 if(argc == 1)
  {
   fprintf(stderr,"Geben sie mindestens eine Datei an!!!\n");
   exit (1);
  }

 while(*++argv)
  {
   printf("%s : ",*argv);
   if(chmod(*argv, S_IROTH) == -1)
      printf("...nicht lesbar fuer alle anderen!!\n");
   else
       printf("Leserecht für alle gesetzt!!\n");
   }
 return 0;
}
