Need advice on web-based administration
As an systems administrator for a large company, one of my major jobs is automating smaller jobs whenever possible. I've recently been involved in creating several monitoring tools for all the systems my team and I monitor, and linking them to a single internal website. We've even added a few scripts that do some simple chores on each system remotely from the website.
I also administer an online document warehousing application (on several servers) that allows customers to view reports from a GUI client. On the server side, there are several command-line tools that allow the administrator to create users/folders/groups/etc. for the server from the command-line without having to use the GUI.
I've been thinking about adding a section to the website that would allow certain users (managers) to input information about users/folders/groups/etc., and have a website CGI create a simple shell script compiled from their requests using the command-line tools. The website's CGI would then move the script over to the correct application server, and place it in a "holder" directory. A daemon running (as the application's admin user) on the designated server would monitor the holder directory for incoming new scripts to run, and run any scripts owned by a specific user when they arrive.
This kind of automation would greatly limit the number of frivolous tasks my team performs for this application, but I'm really uncomfortable about writing a daemon that would run as the admin user, and execute any script placed in a specific directory, just because it's owned by a specific user. Can anyone else suggest a better solution for this kind of remote administration? The remote servers do not have web servers running on them, so I can't link to a separate CGI running on the designated server.