I want to change owner and group of a file in c. i google it, but if find only some code that use system() and chmod command or relative functions. is there a way to do this without system() functions and bash commands?
thanks all. but new problem! :
is there a way to get a user uid and gid without using "id -u username" command in c? parsing /etc/passwd? or better way?