From: sena s. <aun...@ce...> - 2005-05-16 05:10:00
|
Dear Sir/Madam, I have a server written in C which is supposed to be lounging executables to selected UIDs Say the server is running under "herft" uid=501 I want to lounge exec-1 under "user5a"-- uis=503 and exec-2 under "user5b"-- uid=504. currently both exec-1 and exec-2 are owned by "herft" I have done it this in the following way: If the server runs under root this is possible. what I have done was having another intermediate processor called "lounger.exe" which would be started by my server under "root" then changes to user5a or user5b starts the exec and dies. It is easy to transfer the ownership from root to any other My Question is this.... But if the server runs under another account which has the same privileges say "herft" How can we do this? Therefore the lounger.exe too will run under this. But transferring the ownership from herft to user5a or user5b ? Thanks Sena Seneviratne Computer Engineering Lab School of EIE Sydney University |