#include <errno.h>
#include <grp.h>
#include <pwd.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
qflag = 0;
nflag = 0;
vflag = 0;
setlocale(LC_ALL, "");
while ((ch = getopt(argc, argv, "dhinqv")) != -1)
switch(ch) {
case 'd':