net-print/hplip-3.11.10: setting by hp-setup fails on installing printer plugin when /tmp is mounted with noexec (Permission denied)

Bug #942146 reported by cyberbat
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

I have HP LaserJet 1022. When I run hp-setup it says that it would be better
for me to install binary plugin for my printer. When I agree it download it but
fails to run.

When I download and run ./hplip-3.11.10-plugin.run manualy I got:
Verifying archive integrity... All good.
Uncompressing HPLIP 3.11.10 Plugin Self Extracting
Archive.........................................
./hplip-3.11.10-plugin.run: line 395: ./hplip-plugin-install: Permission denied

Seems that it extracts files somewhere to /tmp/ (mounted with noexec) and fails
to run.

After mount -o remount,exec /tmp everything is ok and my printer begin to work.
I can remount /tmp noexec after installing since it need not runing anything
from /tmp.

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Please run the command "hp-check -t" from terminal and post its output here.
To install plug-in files you need to have superuser privilege . You need to run command : su -c "hp-plugin" to install the plugin files.

Regards,
Goutam

Revision history for this message
cyberbat (cyberbat) wrote :

Goutam, I know that I should start plugin-installer from root. I'm starting hp-setup from root. And the problem is, as I've figured, that my /tmp directory is placed on separate partition, mounted with noexec option. Setting noexec on world writable places is good way to do.

I think plugin should extract files to user's home directory if it wants to execute them or at least it should message user, that /tmp/ is mounted with noexec and it would fail.

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Thanks you for clearing me on that. Will take a look at it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.