getuid, geteuid broke?

David L Stevens dls at mace.cc.purdue.edu
Tue Nov 22 06:43:20 AEST 1988


Reply-to: dls at mace.cc.purdue.edu (David L Stevens)


	Nope, not an error. The effective uid of the "su" shell differs from
the real id, but forked children are real and effective "root".
	The right way to test it would be to compile your program, change
the owner to "root", change the mode to "4751" (setuid) and then it should
print different real and effective uids.
-- 
					+-DLS  (dls at mace.cc.purdue.edu)



More information about the Comp.unix.ultrix mailing list