I am writing programm that changes permission in the running;
I used at the command :
seteuid();
the id of the process is changed but the permission not, why??
The program:
Code:
int status;
pid_t child = fork();
if (child == 0)
{
seteuid(1200); // I checks that "1200" is exist id process
execl("......");
}
else wait(&status);
In the Hand Mode :The process "1200" can to exec the command.
but in the this programm It can not.