Impersonating ROOT privileges within a user app
Running Apache/PHP, I want to call a program that requires ROOT access (Direct I/O with /dev/sd?)...
sudo is not available (Requires a tty associated with the user, but the user Apache does not). Help? |
Quote:
|
Two immediate thoughts for more information...
Do you have root access on the server? Why is sudo not an option? |
:rolleyes: There's a reason why that sort of thing isn't "easy."
|
[suicide is painless]
http://httpd.apache.org/docs/2.2/suexec.html [classical AC/DC song title] PHP Code:
|
Thanks for all your input, but it's been solved elsewhere.
The solution involved using execl() and setuid(). |
Quote:
|
All times are GMT -5. The time now is 01:28 PM. |