Faster way? Sure: create a
SUID perl script that does the commands you need (touch, cteare the files, chmod, chown, etc), and which reads the username and list_of_files parameters from the command line (
don't forget to use -T and propperly untaint the values).
Then simply call that script from your CGI like you would any other command.