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:
In the Hand Mode :The process "1200" can to exec the command.
but in the this programm It can not.
Last edited by Yogesh Sawant; 05-05-2008 at 10:27 AM..
Reason: added code tags
seteuid has different results when run by users with different privilege. Are you running this as root, for example? You should check the return value of seteuid() - it ggives a zero on success -1 on failure. Then check the value of errno, or something. ex:
Hi,
I have installed openssh in one of my windows servers following SUA community guidelines. I can successfully install and generate RSA DSA keys. But I cannot SSH to server from my Solaris machine. Below is the output from ssh -v <server>. Also I tried to SSH from the K-shell to localhost... (0 Replies)