From: Steven C. Saliman (saliman@alumni.cs.colorado.edu)
Date: 04/21/93


From: saliman@alumni.cs.colorado.edu (Steven C. Saliman)
Subject: Problems with a setuid program
Date: 22 Apr 1993 03:43:10 GMT

Greetings!

I am having a problem with .99l6. I am trying to run a program
setuid root. I did a chmod 4755 filename as root, and a directory
listing shows that the setuid bit is set, but when I run the program
as saliman, it doesn't work because a setuid(0) inside the program
itself (sudo) fails because the call is not made by root. I created a
test script that did a whoami and cat of a file that was readible only
by root. I made that setuid root, and ran it as saliman. It said I was
saliman, and gave a permission denied on the file. It should have said
I was root and showed me the file since it was a setuid file.

Can anyone tell me what may be happening wrong, and how I can fix this?

Thanks in advance for any replies.

*Steven C. Saliman Saliman@cs.colorado.EDU *
*Thought for the day: *
* If a train-station is where a train stops, *
* then what happens at a workstation? *