chown Chown change the owner and group of a file. chown USERID, GROUPID, FILE_LIST If USERID or GROUPID is -1, then that means to leave it alone. getpwent good for finding user id (uid) getgrent good for finding group id (gid)