CakePHP shell as cron permissions issue

view story

http://unix.stackexchange.com – First to say that I know basics of Linux systems. I am familiar with cron jobs. I am using CakePHP shell as cronjob. The script is using model's method to download pages from site user entered. Everything works fine but when I create cron as user "bokac" the script doesn't have the right privileges to create folders (I am guessing that) because if I delete cronjob for that user, and switch user to "www-data" and create the same cron there, the script works, and creates needed folders. How to make script do that with first user, "bokac"? I am not sure what or who created user "www-data". Any he (HowTos)