I already know that I can read the password structure (getpwnam etc.) but how can I alter the specific password. Do I have to lock the master.passwd and modify it directly or better make a copy from master.passwd modify this and make a file move after correct modifications?
At last, I don't want to make a system(usermod ...) because that invokes the shell and should be the last solution!
Thanks in advance