setuid (euid) after setuid (uid) on System 5

Wm. E. Davidsen Jr davidsen at steinmetz.ge.com
Fri Mar 24 23:56:00 AEST 1989


  The setuid behavior gets to be a real pain in the case where a program
is running setuid (not root) and needs to run another program to perform
some task. The execed program runs with its uid and euid set to the uid
rather than the euid, and there's no reasonable way to change this, such
as setuid(geteuid()) in BSD.

  I hit this all the time on a BBS, where the bbs program runs setuid to
the BBS uid, and a file transfer using a protocol program is to be done.
I found a way by it, but it's ugly, and the only thing in the whole
system which requires root permission (to install not run).
-- 
	bill davidsen		(wedu at crd.GE.COM)
  {uunet | philabs}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.bugs.sys5 mailing list