cups output file permissions question?

Matthew Gillen me at mattgillen.net
Thu Feb 22 16:43:01 EST 2007


R. Mariotti wrote:
> Luggers;
> 
> I have a cups printer defined and the interface module (a bash shell
> script) cats the supplied filename and pipes it to "tee" where one side
> of it is written to a file for subsequent extraction by other processes.
> 
> It appears that the files created are owned by user 'lp' of group 'sys'
> but the permissions are created as 0600 (rw-------).
> 
> As a result, no one but the root user can have access to these files,
> not even the creator (lp) because lp has no login capability.
> 
> Is there a simple way to gain access to these files from another script?
> 
> My initial thought was to change the umask to alter the creation
> permissions to 660 (rw-rw----) and I inserted a umask=0110 in the
> interface script which didn't change anything.
> 
> So, cups guru's, please respond?  What can I do to alter these
> permissions upon creation to allow group access?  I've looked through
> the cups faqs and docs and the various linux print docs I have and see
> nothing.

The cups daemon should run as user 'lp', and that is the only process that
should need write access.  Try piping to the 'lp' command instead of the
device file.

Matt

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list