running plugin as root

proHSP

Verified User
Joined
Dec 22, 2007
Messages
161
Location
Moscow
Hi everybody,
is it possible to run a plugin not as logged in user, but as root?
Thanks,
 
Hi everybody,
is it possible to run a plugin not as logged in user, but as root?
Thanks,
Giving users access to a plugin that provides root access? That sounds kind of risky to me. What exactly would you need it for?
 
This is a plugin to control a firewall black and white list. User will enter his ip address and become unblocked, ip address cannot be entered more often then one per hour. I don't want to let all users modify blacklist by setting 777 permissions to the blacklist file, because malefactor will be able to change or delete this file.
 
You can have the user write to a file and then have a cron job running as root that checks the file for whatever actions need to be taken.
 
Back
Top