[Bug 685093] New: Printing over Samba does not work
https://bugzilla.novell.com/show_bug.cgi?id=685093 https://bugzilla.novell.com/show_bug.cgi?id=685093#c0 Summary: Printing over Samba does not work Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: uli.2001@gmx.de QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: --- I am trying to print from Opensuse on a shared printer attached to a Windows machine, using Samba. This does not work. The document is not printed and shows up in the Cups webinterface with "status" begin "stopped". It has been working reliably with several Opensuse versions before 11.4. In the webinterface of Cups, I see the following: http://localhost:631/admin/log/error_log E [04/Apr/2011:21:39:20 +0200] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750) E [04/Apr/2011:21:39:20 +0200] [Job 17] Stopping job because the sheduler could not execute the backend. E [04/Apr/2011:21:39:39 +0200] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750) E [04/Apr/2011:21:39:39 +0200] [Job 16] Stopping job because the sheduler could not execute the backend. E [04/Apr/2011:21:40:38 +0200] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750) E [04/Apr/2011:21:40:38 +0200] [Job 18] Stopping job because the sheduler could not execute the backend. E [04/Apr/2011:21:42:37 +0200] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750) E [04/Apr/2011:21:42:37 +0200] [Job 18] Stopping job because the sheduler could not execute the backend. E [04/Apr/2011:21:45:39 +0200] [Job 18] Stopping unresponsive job! E [04/Apr/2011:21:50:59 +0200] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750) E [04/Apr/2011:21:50:59 +0200] [Job 18] Stopping job because the sheduler could not execute the backend. This looks similar to the following, but I can't get a workaround out of that: http://forums.opensuse.org/english/get-technical-help-here/network-internet/... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c1
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c2
Ulrich Derenthal
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c3
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c4
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c5
--- Comment #5 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c6
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c7
Alexander R
# rpm -q samba-krb-printing samba-krb-printing-3.5.7-1.17.1.x86_64
# ls -l /usr/lib/cups/backend/smb lrwxrwxrwx 1 root root 28 10. Mär 14:24 /usr/lib/cups/backend/smb -> /usr/bin/get_printing_ticket
# rpm -e samba-krb-printing
# ls -l /usr/lib/cups/backend/smb lrwxrwxrwx 1 root root 17 5. Apr 20:38 /usr/lib/cups/backend/smb -> /usr/bin/smbspool
This seems to be as expected. I cannot test right now whether printing works again, but I will do so as soon as possible and try to remember to report back.
This solution is resolved my exactly printing issue. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c8
--- Comment #8 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c9
Ulrich Derenthal
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c10
--- Comment #10 from Alexander R
Alexander R,
when you re-install samba-krb-printing and afterwards you do chmod 0700 /usr/bin/get_printing_ticket does it then still work for you?
Not worked, pls see below. I follow your recomendation and did: # zypper in samba-krb-printing Получение метаданных репозитория 'openSUSE-11.4 Updates' [готово] Сбор кэша репозитория 'openSUSE-11.4 Updates' [готово] Загрузка данных о репозиториях... Чтение установленных пакетов... Разрешение зависимостей пакетов... Будет установлен следующий НОВЫЙ пакет: samba-krb-printing 1 новый пакет для установки. Полный размер загрузки: 70,0 KiB. После этой операции будет использовано дополнительно 10,0 KiB. Продолжить? [y/n/?] (y): Получение пакет samba-krb-printing-3.5.7-1.17.1.i586 (1/1), 70,0 KiB (10,0 KiB после распаковки) Получение: samba-krb-printing-3.5.7-1.17.1.i586.rpm [готово] Установка: samba-krb-printing-3.5.7-1.17.1 [готово] Дополнительный вывод rpm: Starting SuSEconfig, the SuSE Configuration Tool... Running module permissions only Reading /etc/sysconfig and updating the system... Executing /sbin/conf.d/SuSEconfig.permissions... Checking permissions and ownerships - using the permissions files /etc/permissions /etc/permissions.easy /etc/permissions.d/mail-server /etc/permissions.d/postfix /etc/permissions.d/texlive /etc/permissions.local fscaps support disabled (file_caps missing in /proc/cmdline). setting /var/log/messages to root:alerom 0644. (wrong permissions 0640) Finished. I check permissions: # ls -al /usr/bin/get_printing_ticket -rwsr-x--- 1 root lp 9816 Мар 1 15:21 /usr/bin/get_printing_ticket* After that, I try to print (from libreoffice) and see to log file: E [13/Apr/2011:12:05:27 +0400] Unable to execute /usr/lib/cups/backend/smb: insecure file permissions (0104750) E [13/Apr/2011:12:05:27 +0400] [Job 287] Stopping job because the sheduler could not execute the backend. I [13/Apr/2011:12:05:45 +0400] [Job 287] Canceled by "username". Printing is fail (stopped) and I manualy cancel this job. After that i do: # chmod 0700 /usr/bin/get_printing_ticket and see to log file: E [13/Apr/2011:12:07:19 +0400] [Job 288] Session setup failed: NT_STATUS_LOGON_FAILURE E [13/Apr/2011:12:07:25 +0400] [Job 288] Session setup failed: NT_STATUS_LOGON_FAILURE E [13/Apr/2011:12:07:32 +0400] [Job 288] Tree connect failed (NT_STATUS_ACCESS_DENIED) I [13/Apr/2011:12:07:32 +0400] Hint: Try setting the LogLevel to "debug" to find out more. D [13/Apr/2011:12:07:32 +0400] [Job 288] The following messages were recorded from 12:07:12 to 12:07:32 D [13/Apr/2011:12:07:32 +0400] [Job 288] Adding start banner page "none". D [13/Apr/2011:12:07:32 +0400] [Job 288] Queued on "PRN4_1" by "username". D [13/Apr/2011:12:07:32 +0400] [Job 288] Auto-typing file... D [13/Apr/2011:12:07:32 +0400] [Job 288] Request file type is application/postscript. D [13/Apr/2011:12:07:32 +0400] [Job 288] File of type application/postscript queued by "username". D [13/Apr/2011:12:07:32 +0400] [Job 288] Adding end banner page "none". D [13/Apr/2011:12:07:32 +0400] [Job 288] job-sheets=none,none D [13/Apr/2011:12:07:32 +0400] [Job 288] argv[0]="PRN4_1" D [13/Apr/2011:12:07:32 +0400] [Job 288] argv[1]="288" D [13/Apr/2011:12:07:32 +0400] [Job 288] argv[2]="username" D [13/Apr/2011:12:07:32 +0400] [Job 288] argv[3]="Безымянный1" D [13/Apr/2011:12:07:32 +0400] [Job 288] argv[4]="1" D [13/Apr/2011:12:07:32 +0400] [Job 288] argv[5]="PageSize=A4 job-uuid=urn:uuid:b2f2adcc-0bb6-3dca-46ca-781886ca1915 job-originating-host-name=localhost time-at-creation=1302682032 time-at-processing=1302682032 AP_D_InputSlot=" D [13/Apr/2011:12:07:32 +0400] [Job 288] argv[6]="/var/spool/cups/d00288-001" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[0]="CUPS_CACHEDIR=/var/cache/cups" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[1]="CUPS_DATADIR=/usr/share/cups" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[2]="CUPS_DOCROOT=/usr/share/cups/webcontent" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[4]="CUPS_REQUESTROOT=/var/spool/cups" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[5]="CUPS_SERVERBIN=/usr/lib/cups" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[6]="CUPS_SERVERROOT=/etc/cups" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[7]="CUPS_STATEDIR=/var/run/cups" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[8]="HOME=/var/spool/cups/tmp" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[10]="SERVER_ADMIN=root@hostname" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[11]="SOFTWARE=CUPS/1.4.6" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[12]="TMPDIR=/var/spool/cups/tmp" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[13]="USER=root" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[15]="CUPS_ENCRYPTION=IfRequested" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[16]="IPP_PORT=631" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[17]="CHARSET=utf-8" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[18]="LANG=ru_RU.UTF-8" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[19]="PPD=/etc/cups/ppd/PRN4_1.ppd" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[20]="RIP_MAX_CACHE=8m" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[21]="CONTENT_TYPE=application/postscript" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[22]="DEVICE_URI=smb://corpserver/server/prn4-1" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[23]="PRINTER_INFO=HP LaserJet 5100 Series Postscript (recommended)" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[24]="PRINTER_LOCATION=Рядом с буфетом" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[25]="PRINTER=PRN4_1" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[26]="CUPS_FILETYPE=document" D [13/Apr/2011:12:07:32 +0400] [Job 288] envp[27]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript" D [13/Apr/2011:12:07:32 +0400] [Job 288] Started filter /usr/lib/cups/filter/pstops (PID 11948) D [13/Apr/2011:12:07:32 +0400] [Job 288] Started backend /usr/lib/cups/backend/smb (PID 11949) D [13/Apr/2011:12:07:32 +0400] [Job 288] Page = 595x842; 13,12 to 582,830 D [13/Apr/2011:12:07:32 +0400] [Job 288] slow_collate=0, slow_duplex=0, slow_order=0 D [13/Apr/2011:12:07:32 +0400] [Job 288] Before copy_comments - %!PS-Adobe-3.0 D [13/Apr/2011:12:07:32 +0400] [Job 288] %!PS-Adobe-3.0 D [13/Apr/2011:12:07:32 +0400] [Job 288] %%BoundingBox: (atend) D [13/Apr/2011:12:07:32 +0400] [Job 288] %%Creator: (LibreOffice 3.3) D [13/Apr/2011:12:07:32 +0400] [Job 288] %%For: (username) D [13/Apr/2011:12:07:32 +0400] [Job 288] %%CreationDate: (Wed Apr 13 12:07:12 2011) D [13/Apr/2011:12:07:32 +0400] [Job 288] %%LanguageLevel: 3 D [13/Apr/2011:12:07:32 +0400] [Job 288] %%DocumentData: Clean7Bit D [13/Apr/2011:12:07:32 +0400] [Job 288] %%Pages: (atend) D [13/Apr/2011:12:07:32 +0400] [Job 288] %%Orientation: (atend) D [13/Apr/2011:12:07:32 +0400] [Job 288] %%PageOrder: Ascend D [13/Apr/2011:12:07:32 +0400] [Job 288] %%EndComments D [13/Apr/2011:12:07:32 +0400] [Job 288] Before copy_prolog - %%BeginProlog D [13/Apr/2011:12:07:32 +0400] [Job 288] Before copy_setup - %%BeginSetup D [13/Apr/2011:12:07:32 +0400] [Job 288] Before page loop - %%Page: 1 1 D [13/Apr/2011:12:07:32 +0400] [Job 288] Copying page 1... D [13/Apr/2011:12:07:32 +0400] [Job 288] PAGE: 1 1 D [13/Apr/2011:12:07:32 +0400] [Job 288] pagew = 568.3, pagel = 817.7 D [13/Apr/2011:12:07:32 +0400] [Job 288] bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842 D [13/Apr/2011:12:07:32 +0400] [Job 288] PageLeft = 13.4, PageRight = 581.8 D [13/Apr/2011:12:07:32 +0400] [Job 288] PageTop = 829.7, PageBottom = 12.1 D [13/Apr/2011:12:07:32 +0400] [Job 288] PageWidth = 595.0, PageLength = 842.0 D [13/Apr/2011:12:07:32 +0400] [Job 288] Wrote 1 pages... D [13/Apr/2011:12:07:32 +0400] [Job 288] Set job-printer-state-message to "Session setup failed: NT_STATUS_LOGON_FAILURE", current level=ERROR D [13/Apr/2011:12:07:32 +0400] [Job 288] get_exit_code(cli=0xb78bed98, nt_status=c000006d) D [13/Apr/2011:12:07:32 +0400] [Job 288] ATTR: auth-info-required=username,password D [13/Apr/2011:12:07:32 +0400] [Job 288] get_exit_code(cli=0xb78e14e0, nt_status=c000006d) D [13/Apr/2011:12:07:32 +0400] [Job 288] ATTR: auth-info-required=username,password D [13/Apr/2011:12:07:32 +0400] [Job 288] get_exit_code(cli=0xb78e14e0, nt_status=c0000022) D [13/Apr/2011:12:07:32 +0400] [Job 288] ATTR: auth-info-required=username,password D [13/Apr/2011:12:07:32 +0400] [Job 288] Backend returned status 2 (authentication required) D [13/Apr/2011:12:07:32 +0400] [Job 288] Job held for authentication. D [13/Apr/2011:12:07:32 +0400] [Job 288] End of messages D [13/Apr/2011:12:07:32 +0400] [Job 288] printer-state=3(idle) D [13/Apr/2011:12:07:32 +0400] [Job 288] printer-state-message="Tree connect failed (NT_STATUS_ACCESS_DENIED)" D [13/Apr/2011:12:07:32 +0400] [Job 288] printer-state-reasons=none I [13/Apr/2011:12:07:42 +0400] Saving printers.conf... I [13/Apr/2011:12:07:42 +0400] Saving job cache file "/var/cache/cups/job.cache"... I [13/Apr/2011:12:07:42 +0400] Saving subscriptions.conf... E [13/Apr/2011:12:12:35 +0400] [Job 288] Stopping unresponsive job! Printing is fail(stopped). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c11
--- Comment #11 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c12
--- Comment #12 from Alexander R
After chmod 0700 /usr/bin/get_printing_ticket the cupsd "Started backend /usr/lib/cups/backend/smb (PID 11949)" so that the issue of this bug report "get_printing_ticket not executed because of setuid bit" is solved.
The subsequent errors "Session setup failed: NT_STATUS_LOGON_FAILURE" and "Tree connect failed (NT_STATUS_ACCESS_DENIED)" are something else (related to Samba and/or your AD environment).
My next step after installing samba-krb-printing-3.5.7-1.17.1 (and getting printing failure) in my reply https://bugzilla.novell.com/show_bug.cgi?id=685093#c10, is uninstalling samba-krb-printing-3.5.7-1.17.1. After this I can to print again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c13
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c14
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c15
--- Comment #15 from Robert Munteanu
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c16
Alexander R
Still happens in 12.1
I've too Working solution is here https://bugzilla.novell.com/show_bug.cgi?id=685093#c2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c17
Kimmo E
Still happens in 12.1
Still happens in openSuSE 12.2, too :( The solution of c#2 also works here. My problem is the same than in c#11: First the 'cups-inscure-filter' problem and subsequently - after having resolved the first problem - the 'NT_STATUS_LOGON_FAILURE'. Uninstalling samba-krb-printing package makes printing possible (without authentication). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c18
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c19
--- Comment #19 from Dieter Jurzitza
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c20
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c21
Dieter Jurzitza
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c22
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c23
Dieter Jurzitza
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c24
--- Comment #24 from Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c25
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c26
--- Comment #26 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=685093
https://bugzilla.novell.com/show_bug.cgi?id=685093#c27
--- Comment #27 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
--- Comment #30 from Bernhard Wiedemann
http://bugzilla.novell.com/show_bug.cgi?id=685093
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
SMASH SMASH
http://bugzilla.novell.com/show_bug.cgi?id=685093
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
http://bugzilla.novell.com/show_bug.cgi?id=685093#c34
--- Comment #34 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
http://bugzilla.novell.com/show_bug.cgi?id=685093#c35
--- Comment #35 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=685093
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com