I am facing a weird problem. When I try to create a folder from firefox (while downloading stuff), it says "unable to create folder. permission denied." But when I create it using terminal (i.e. 'mkdir foo') it works.

Firefox is running as the same user as the terminal, so shouldn't the two programs have the same permissions ?

I am not sure why is firefox making my OS unhappy :-(

Any help will be greatly appreciated.