-
Notifications
You must be signed in to change notification settings - Fork 472
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
Permission denied when filedevice prints anywhere other than /tmp/ #6261
Comments
a security policy may be effective. Check polkit or whatever is effective in your system. |
I used pkaction --verbose to see a list of all the policies in my system. Which one of these policies, if any, am I to change? Or is it another policy entirely?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have created a custom ppd file in
/usr/share/cups/model
with the following propertiesAnd made a filter in
/usr/lib/cups/filter
like thisAfter that, I create my printer
sudo lpadmin -p fileprinter -P /usr/share/cups/model/fileprinter.ppd -v file:///dev/null -E
I then print with
sudo lp -d fileprinter -s -c -t<title> <filetoprint>
If <myfolder> is /tmp, this works perfectly. I get a new file created in /tmp with all the data from <filetoprint>. Unfortunately, I want it to print elsewhere, and when I do that, the filter fails and I get this in the logs
[Job 143] /usr/lib/cups/filter/fileprinter: line 2: <myfolder>/<filename>: Permission denied
The permissions on the filter is 755, and the permissions in the target directory is 777. I have tried changing the owners and permissions multiple times to no avail. This issue occurs everywhere I tried other than in /tmp.
Is /tmp the only place filedevices can print to?
OS: RHEL 9.5
Cups version: 2.3.3
The text was updated successfully, but these errors were encountered: