automatically change owner and group

We have a program that when a new account is created using the webpage it creates a new directory on the linux filesystem for the account. The problem is the process that creates the directory is as root user, as I want ftpuser to be able to login I have to manually login and chown -R the /opt/account directory.

drwxr-xr-x 4 ftpuser ftpuser 4096 Sep 12 2007 1
drwxr-xr-x 4 ftpuser ftpuser 4096 Apr 24 08:18 10
drwxr-xr-x 4 ftpuser ftpuser 4096 Sep 12 2007 1002
drwxr-xr-x 4 root root 4096 Sep 12 2007 1003
drwxr-xr-x 4 root root 4096 Sep 12 2007 1004
drwxr-xr-x 4 root root 4096 Sep 12 2007 1005

What the best way to fix this. I was think a script ran in cron, but this is only ran once a minute and not ideal. Another idea was use the watch command with a nohup in the background.

Any help appreciated.

so I have put this

chown -R ftpuser:ftpuser /opt/account

into the cron, but this only runs once a minute. Is there a way to this instantly?