[Bug 800312] New: hp-sendfax fails because of missing tmp directory
https://bugzilla.novell.com/show_bug.cgi?id=800312 https://bugzilla.novell.com/show_bug.cgi?id=800312#c0 Summary: hp-sendfax fails because of missing tmp directory Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@suse.com ReportedBy: kieltux@gmail.com QAContact: jsmeix@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0 openSUSE 12.2 - 64bit; 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 86_64 x86_64 GNU/Linux Printer: HP Photosmart C6180 connected via ethernet (lan) Software: cups-libs-32bit-1.5.4-103.1.x86_64 cups-libs-1.5.4-103.1.x86_64 python-cups-1.9.61-2.1.2.x86_64 cups-pk-helper-0.2.2-2.1.2.x86_64 cups-1.5.4-103.1.x86_64 python-cupshelpers-1.3.9-2.2.1.noarch cups-client-1.5.4-103.1.x86_64 cups-devel-1.5.4-103.1.x86_64 hplip-hpijs-3.12.11-62.1.x86_64 hplip-3.12.11-62.1.x86_64 hplip-sane-3.12.11-62.1.x86_64 CUPS_Queue: HP_Photosmart_C6180_Fax: hpfax:/net/Photosmart_C6100_series?zc=hpc6180 *cupsFilter: "application/vnd.cups-raster 0 hpcupsfax" *ShortNickName: "HP Fax hpcups" *NickName: "HP Fax hpcups" Adding a file to the queue (e.g. with the gui from hp-sendfax) will not add a file to fax queue. hp-sendfax[17225]: debug: Trying to add file: /home/carsten/Dokumente/2010-LinuxTag-Flyer-001.pdf hp-sendfax[17225]: debug: File type of file /home/carsten/Dokumente/2010-LinuxTag-Flyer-001.pdf: application/pdf hp-sendfax[17225]: debug: FileTable_callback(/home/carsten/Dokumente/2010-LinuxTag-Flyer-001.pdf) Nothing happens after this. After creating the missing tmp directory with an restarting cups: mkdir /var/log/hp/tmp chown root:lp /var/log/hp/tmp/ chmod 775 /var/log/hp/tmp/ hp-sendfax[18991]: debug: Trying to add file: /home/carsten/Dokumente/2010-LinuxTag-Flyer-001.pdf hp-sendfax[18991]: debug: File type of file /home/carsten/Dokumente/2010-LinuxTag-Flyer-001.pdf: application/pdf hp-sendfax[18991]: debug: FileTable_callback(/home/carsten/Dokumente/2010-LinuxTag-Flyer-001.pdf) hp-sendfax[18991]: debug: A new fax has arrived: /tmp/hpfax-ow5tg9 (40) hp-sendfax[18991]: debug: Magic=hplip_g3 Ver=1 Pages=2 hDPI=200 vDPI=100 Size=1 Res=1 Enc=4 hp-sendfax[18991]: debug: Adding file /tmp/hpfax-ow5tg9 (application/hplip-fax,HPLIP Fax,2010-LinuxTag-Flyer-001.pdf,2) and the fax could be send. Reproducible: Always Steps to Reproduce: 1. Try to send a fax with hp-sendfax without the missing /var/log/hp/tmp 2. Add the missing /var/log/hp/tmp 3. Try to send a fax 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=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c1
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c2
--- Comment #2 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c3
--- Comment #3 from Kiel Tux
I assume it happens because /var/log/hp/ is not writable by arbitrary users so that /var/log/hp/tmp/ cannot be created therein when a normal user runs hp-sendfax, see https://bugs.launchpad.net/bugs/1016507
Please report issues regarding /var/log/hp/ permissions directly to HPLIP upstream via http://hplipopensource.com/hplip-web/support.html
HPLIP upstream needs to implement their functionality in a secure way.
For the writable by users problem, I added the user to the group "lp" (earlier this morning). After this,I found the upgrade log in /var/log/hp: /var/log/hp: drwxrwxr-x 2 root lp 4096 Jan 24 15:14 hp -rw-r----- 1 xyz123 users 11583 Jan 24 09:14 hp-upgrade.log So the user (in group "lp") can write to the directory but the subdirectory /var/log/hp/tmp will not be created (neither during the installation of the rpm ( like /var/log/hp) or using hp-sendfax). I will add my bugreport to HPLIP upstream, but I know the answser, because I do not use the HPLIP installer. Thx -- 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=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c4
--- Comment #4 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c5
--- Comment #5 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c6
--- Comment #6 from Kiel Tux
Sigh... I wished HPLIP upstream would pay a bit more attention to issues when Linux distributions build their software from its sources than to tell everybody to download the newest HPLIP version and install it via the HPLIP installer, compare https://bugs.launchpad.net/hplip/+bug/1018303/comments/2
I submitted hplip to "Printing" via submitrequest 149796 and forwarded it to openSUSE:Factory as submitrequest 149797 with this RPM changelog text: ---------------------------------------------------------------------------- - Create /var/log/hp/tmp/ directory that is needed by hp-sendfax as a workaround until HPLIP upstream implemented it correctly see https://bugs.launchpad.net/bugs/1016507 (bnc#800312). ----------------------------------------------------------------------------
The /var/log/hp/tmp/ directory is installed as drwxrwxr-x root lp /var/log/hp/tmp
I assume adding the user to the group "lp" is required so that hp-sendfax works for this user because otherwise the user cannot write in /var/log/hp/tmp
This is the "funny" part. My test user was later no more in the group "lp" (this was just the case earlier in my tests). But fax sending works with: drwxrwxr-x root lp /var/log/hp/tmp (like in my description) -- 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=800312
https://bugzilla.novell.com/show_bug.cgi?id=800312#c7
--- Comment #7 from Kiel Tux
participants (1)
-
bugzilla_noreply@novell.com