How to change the Uid in a linux inside a c program so i can simulate various users trying to access some files?
I have tried to do it with setuid but even the function was successful the uid didnt change.
To solve this problem, we have implemented measures to analyze the source code and how to write the source code. Thereby we have found the optimal solution to this problem. Maybe this answer is not suitable for you, but it will be a solution for you to solve your problem. To download and see the most accurate answer, please click the link below to see more. secretion.