2
votes
0answers
236 views

How to run php script (via web server) as different user under Mac OS X

I'm trying to call an executable from a PHP script that needs to be run as a different user (NOT root) than the web server normally runs as. I thought it should be sufficient to just set the setuid ...
2
votes
1answer
320 views

What's to stop somebody from creating a setuid-root script on a flash drive, then putting it into another person's computer and getting root access?

What's to stop somebody from creating a setuid-root script on a flash drive, then putting it into another person's computer and getting root access? I assume there's some kind of protection against ...
5
votes
7answers
13k views

How to run a program as root without “sudo”?

I have a certain binary program on OS X that can only be run as root. I'm tired of prepending sudo each time I invoke it and typing the password, and would like it to automatically run as root when I ...