You definitely have to change some permissions because Postgres can't read your file. Postgres is a different user from you, so it can't read your files if you don't give it the right to. The \copy solution would work only if you have a setup where you, not postgres, are the user who runs the psql
command.
You could always make a copy of the file, assign permissions for the file to user Postgres in a directory Postgres can execute, and delete the file afterwards, or you could do this:
What you have to change depends on the output of this command (run as user1):
namei -l /home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv
(you may need to sudo apt-get install util-linux
before running this command, if it isn't already installed)
This command will list the current permissions of the file and all its parent directories so we can find solutions.
Assuming all of the directories have entries ending with "x", like this:
drwxr-xr-x user group filename
drwxr-xr-x
drwxr-xr-x
-rw-------
then either of the two solutions below will work.
If you don't want to change permissions for all users and you have sudoer permissions, you can do
sudo chown /home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv postgresql
However, this approach will revoke your access to the file, something you probably don't want. But you can always chown the file back to you after you're done importing it with
sudo chown /home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv user1
If you don't mind if all users read your file, then you can execute (as user1 and without root permissions)
chmod a+r /home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv
I recommend that you do this solution. It will only change the permissions of that one file so that all the users on your computer can read it. However, although by default in linux most directories can be opened by anyone, there's a chance that this won't work if not all users have the execute permission on your directories.
Of course, once you've read the file, you can always restrict the permissions again with
chmod a-r /home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv
If neither of these solutions are good for you, please comment with the output of the first command above.