Printing fails with "Unable to open print file"
@michaelrsweet 已经在做这个了。
开始于 2025年5月7日。
评估
这个 Issue 还没有评估数据。
描述
Hello,
I have a number of machines where printing failed with error "Unable to open print file". As this error message is not especially meaningful, I edited the cups source code (backend/ipp.c) so that additionally the full path of the print file, the name of the process trying to open the print file and the effective UID and GID of that process were given.
So, I found that the print file was a temporary file in /tmp, belonging to user root and group lp, but only readable by root; that the process is named in the scheme (all printers are imported from remote by cups-browsed)
ipp://$RemoteHost:$RemotePort/printers/$Printer
which was running with effective UID of the user trying to print and effective GID lp.
Of. course, the print file could not be opened with these permissions.
But I had another machine where printing worked, with almost the same configuration, and found that there, the process named ipp://$RemoteHost:$RemotePort/printers/$Printer was running with effective UID 0.
So, I deinstalled and then reinstalled all cups packages, deleted all cups-related caches and spools I could find, and somehow after some tests I thought that the problem was solved, but now I have the same again: process with effective UID != 0 trying to open file exclusively accessible by root cannot open the file.
What can I do?
CUPS 2.4.2
Regards
Christoph
- 主要语言
- C
- 星标
- 51
- 派生
- 21
- 平均合并
- 22 小时 49 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenPrinting/cups-browsed 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 67/100
OpenPrinting/cups-browsed#82 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
OpenPrinting/cups-browsed#77 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
OpenPrinting/cups-browsed#76 ·
-
难度 4/5 3-5 天 新手友好度 50/100
OpenPrinting/cups-browsed#75 ·
-
难度 4/5 3-5 天 新手友好度 38/100
OpenPrinting/cups-browsed#71 ·
查看 OpenPrinting/cups-browsed 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
ChupathingyCE/chupathingyce#1550 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
slice
难度 2/5 1-3 小时 新手友好度 73/100
Life-Framework/Life-Framework#3878 ·
维护者通常 1 天内回复
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or later可能已有人在做 @colinhacks 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
tursodatabase/libsql#2333 ·
维护者通常 11 天内回复