[svlug] Giving admin. power to a web mgmt. interface

Robert Hajime Lanning lanning at lanning.cc
Fri Nov 2 10:57:01 PST 2001

Use "sudo" in your scripts.

You can give the web account permissions to run specific commands/scripts.

You can also (dangerous) tell sudo not to ask for passwords. ("NOPASSWD:")

---- As written by Ivan Passos:
> I'm trying to develop a web-based front end for the configuration /
> administration of a Linux box (no, I can't use Webmin, I have to develop
> my own ... :)). The problem is that this front-end needs to run some
> commands with root powers, or have access to some directories, config.
> files, etc. as such. Now, I could run the web server as root, but I know
> this is a no-no (actually I think later versions of Apache don't even let
> you do that, if I'm not mistaken ...).

/* Robert Hajime Lanning                             lanning at lanning.cc
** Trade: Unix Systems Administrator (Senior level) (SAGE IV)
#include <std_disclaimer.h>

More information about the svlug mailing list