#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include<errno.h> 
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


int main (int argc, char * argv[]) {
  int retVal;
  if (argc!=2) {
      printf ("Usage testChown pathname\n");
      return (-1); }
  retVal = chown (argv[1], (uid_t)3, (gid_t)3);
  if(retVal == -1){ 
     printf("Error Number : %d\n", errno); 
     perror("Error Description"); 
     return (-2); } 
   printf ("Assignment to %s of user SYS and group SYS has been performed succesfully\n", argv[1]);
   return (0); }
 
 
 
    



