Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cups ipp backend permissions problem for legacy driverless printing support #183

Closed
7underlines opened this issue Jan 2, 2020 · 6 comments

Comments

@7underlines
Copy link
Contributor

Cups-filters 1.26.0+ assumes 755 for the driverless printing fallback logic.
Ubuntu 19.10 already applies a distro specific patch to cups for this.

The issue was brought up here
#163.

I tried to get this into cups upstream here
apple/cups#5710

But, that was rejected because it would break Kerberized printing.

Any ideas how we can fix this without relying on distro specific patches?

@tillkamppeter
Copy link
Member

CUPS needs the "ipp" backend to run as root so that it supports Kerberos authentication. To make a backend run as root under CUPS one removes its execution permissions for "group" and "others", this makes CUPS run the backend as root, otherwise it is run as the "lp" system user. Side effect is that no program (for example a wrapper backend) can run the backend as non-root user.
What we have to do is to run the "implicitclass" backend as root, so that it is able to run the root-only "ipp" backend. This we can simply do by installing it with the same permissions as "ipp": -rwx------. AFAIR we do this already with the "beh" backend.

@tillkamppeter
Copy link
Member

@logTom, could you do a quick test by setting both the "ipp" and "implicitclass" backends to -rwx------ permissions and see whether this way the jobs also get printed?

@7underlines
Copy link
Contributor Author

Yes, this does also work.

@tillkamppeter
Copy link
Member

So I will change the install process of cups-filters to set root-mode permissions for the "implicitclass" backend.
Thank you very much.

@7underlines
Copy link
Contributor Author

Thank you for your fast response :)

@tillkamppeter
Copy link
Member

Fixed in commit b331924. Thank your for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants