4.11. chown, fchown, and lchown FunctionsThe chown functions allow us to change the user ID of a file and the group ID of a file.[View full width]#include <unistd.h> int chown(const char *pathname , uid_t owner , gid_t ![]() int fchown(int filedes , uid_t owner , gid_t group ); int lchown(const char *pathname , uid_t owner , ![]() |
All three return: 0 if OK, 1 on error |