Linux file permission for COPY TO SQL command

Krzysztof <kj@limes.com.pl>

From: Krzysztof <kj@limes.com.pl>
To: pgsql-sql@lists.postgresql.org
Date: 2025-10-28T19:39:17Z
Lists: pgsql-sql
I try to use COPY TO command to copy results of a SELECT but I get this 
message:

ERROR:  could not open file "a file" for writing: Permission denied

User, group and other are granted full permission to this file. What 
should I do more to get this working?

-- 
Pozdrawiam
Krzysztof Jasieński