I am trying to use CUPS to print to a file in an existing directory. This part works fine, and the file contents are correct.
The issue I have is that CUPS seems to assign permissions for ROOT user only (i guess because it's running as root?) and the user I'm trying to access the folder from does not have read permissions on the file.
However, when they all work on the same folder via winscp, whenever they open a new file, they open it with themselves, as the owner.
Thus, when someone else is trying to save the file, if it's his own fine, but if not, it does save, and gives an error "Upload successful, error occurred while setting the permissions and/or timestamp".