Hello,

On Jul 4 18:14 Arno Jung wrote (shortened):
> My PC = SuSE 10.2, hplip-2.7.6
...
> > Here my hp-check (shortened):
...
> > Checking proper HPLIP I/O setup (USB I/O only)...
> > error: udev "usb_device" access mode is INCORRECT: 0644 (it must be 
> > 066x)
> > 
> > Checking for permissions of USB attached printers...
> > HP Device 0x3a11 at 003:004:
> >      Device URI: hp:/usb/officejet_5500_series?serial=MY42QF111896
> >      Device node: /dev/bus/usb/003/004
> >      Mode: 0660
> >      UID: 0 (root)
> >      GID: 7 (lp)
> >      Device group and mode appear correct.
...
> > arju:~ # ls -l /dev/bus/usb/003/004
> > crw-rw---- 1 root lp 189, 259  4. Jul 16:45 /dev/bus/usb/003/004
> > arju:~ #

It seems to be abug in hp-check that it first complains about
mode 0644 but later it finds out that it actually is 0660.

I get the same on my openSUSE_10.2 32-bit workstation
using the newest HPLIP from
http://software.opensuse.org/download/home:/jsmeix/openSUSE_10.2/i586/
(already with the fix for printing white spaces and empty lines
 according to the matching mail on this list):
----------------------------------------------------------------------
[EMAIL PROTECTED] hp-check -t
...
Checking proper HPLIP I/O setup (USB I/O only)...
error: udev "usb_device" access mode is INCORRECT: 0644 (it must be 066x)

Checking for permissions of USB attached printers...
HP Device 0x417 at 002:035: 
    Device URI: hp:/usb/HP_LaserJet_1220?serial=00XXXXXXXXXX
    Device node: /dev/bus/usb/002/035
    Mode: 0660
    UID: 0 (root)
    GID: 7 (lp)
    Device group and mode appear correct.
HP Device 0x7004 at 002:034: 
    Device URI: hp:/usb/deskjet_3320?serial=TH27T2H35B35
    Device node: /dev/bus/usb/002/034
    Mode: 0660
    UID: 0 (root)
    GID: 7 (lp)
    Device group and mode appear correct.
----------------------------------------------------------------------


By the way:

1.
There are still some ANSI ESC sequences left even for "-t":
----------------------------------------------------------------------
ESC[01mDistribution:ESC[0m
suse 10.2
----------------------------------------------------------------------
and
----------------------------------------------------------------------
ESC[31;01merror: udev "usb_device" access mode is
INCORRECT: 0644 (it must be 066x)ESC[0m
----------------------------------------------------------------------
and
----------------------------------------------------------------------
ESC[01mSummary of needed commands to run to satisfy missing
dependencies:ESC[0m
----------------------------------------------------------------------

2.
When I use "hp-check -t &>/tmp/hp-check.out"
it seems the output of stderr and stdout is not in the correct
order compared to the output on the terminal using plain "hp-check".
In particular the
"error: NOT FOUND! This is a REQUIRED/OPTIONAL dependency."
messages appear at the very beginning of /tmp/hp-check.out

 
> > Johannes Meixner schrieb:
> >> 2. Regarding "controllable permissions":
...
> >> To set appropriate permissions for scanning, do one of the
> >> following:
...
> >> b)
> >> Use a different /etc/udev/rules.d/55-hpmud.rules file like
> >> the following (long lines are wrapped here at "GROUP", in the
> >> real file all permission settings must be on one line):
> >> ----------------------------------------------------------------
> >> # TODO: add PROGRAM rule for 7/xx/xx printer class interface
> >> SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
> >> ACTION!="add", GOTO="hpmud_rules_end"
> >> SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="7004", OWNER="root",
> >>  GROUP="lp", MODE="0660"
> >> SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="0417", OWNER="root",
> >>  GROUP="lp", MODE="0666"
> >> LABEL="hpmud_rules_end"
> >> ----------------------------------------------------------------
> >> Now the all-in-one device LaserJet 1220 with product ID "0417"
> >> has insecure permissions which allow all users read/write access.
> >> R/w access is necessary for scanning but it should not be set
> >> for for all users. Any user can now send nonsense data to
> >> the device (e.g. disturb a simlutaneously running print job
> >> or a simlutaneously running scanning).
> >> MODE="0666" is only o.k. for system where only one person works
> >> at the same time e.g. a personal workstation without remote login.

If your system is a personal workstation without remote login,
you could use the following /etc/udev/rules.d/55-hpmud.rules
file to get appropriate permissions for scanning for your
HP Officejet 5500 series device:
----------------------------------------------------------------
# TODO: add PROGRAM rule for 7/xx/xx printer class interface
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
ACTION!="add", GOTO="hpmud_rules_end"
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="3a11", OWNER="root",
 GROUP="lp", MODE="0666"
LABEL="hpmud_rules_end"
----------------------------------------------------------------
Long lines are wrapped here at "GROUP", in the real file all
permission settings must be on one line, i.e.:
 ... OWNER="root", GROUP="lp", MODE="0660"


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
HPLIP-Help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hplip-help

Reply via email to