I write a simple program
When you run this program, if you are not root
user, input root
password, then change uid to root
if (getuid())
{
char *pass = getpass("");
//how to change uid to root ?
}
How to change uid to root when you got root
password?