#include <ShoreApp.h> shrc Shore::chown(const char *path, gid_t g, uid_t u);
Only privileged users can change the owner of a registered object. The owner of an object may change the group to a group of which he is a member. Privileged users can change the owner and group to anything.
If an unprivileged user successfully changes the group ID of a file, the set-user-ID and set-group-ID bits of the file mode, S_ISUID and S_ISGID respectively are cleared.
If the final component of path is a symbolic link or a cross-reference, the ownership and group of the symbolic link or cross-reference is changed, not the ownership and group of the file or directory to which it points.