acquire file access permissions in a program
I have been digging in manpages etc. for hours, and striking out.
I want to be able to read any file (after getting the root password from the user). In bash this is trivial, but I cannot figure out how to do this from a running C program.
1. ask user for root password
2. use password to set my running process to root user
(or otherwise be able to read any file)
thanks
|