Permission denied for folder creation using background_fu

Hi All, I am calling a controller method to convert a video file. This process is called using background_fu job. When the function tries to create a new folder in rails root it gives error i.e. Permission denied. The function performs well if not called in background job process.

Can any one point out what can be the trouble. Thanks in advance, Anubhaw