----- "Anand Vaidya" <[EMAIL PROTECTED]> wrote:
> I am thinking of writing a C app running as root that will listen on a
> 
> localhost socket for "commands" from the web UI and just execute it
> (after 
> necessary checks, dropping down privileges etc)

I think the above is your best option, but please consider a 
scripting language like Python or better still, Groovy (as
this will be in keeping with your Java environment).

I recently implemented something similar for a project where 
users needed to get access to personal folders (not home dirs).
The web front-end, communicated via XML-RPC to backend Python
service. You can basically write a thin XML-RPC wrapper around
the python "os" and "shutil" modules for file manipulations.

Btw, every Java afficionado should check out Groovy and Grails.

Cheers
Stephan 

_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to