change access permissions of a file based on user C language code example
Example: how to change file permissions in C language
SYNOPSIS
#include <sys/stat.h>
int chmod(const char *path, mode_t mode);
...
SYNOPSIS
#include <sys/stat.h>
int chmod(const char *path, mode_t mode);
...