Markus Elfring changed bug 938659
What Removed Added
Flags needinfo?(Markus.Elfring@web.de)  

Comment # 30 on bug 938659 from
(In reply to Johannes Meixner from comment #28)
> please also attach an appropriate part of a journalctl output

I would prefer an other approach to drill down into involved details.


I have added the following specification to the discussed addition actions in
the configuration files "/usr/lib/udev/rules.d/50-udev-default.rules" and
"/usr/lib/udev/rules.d/70-printers.rules".

, RUN{program}+="/bin/bash -c 'my_log=/tmp/log938659.txt && /usr/bin/date -Ins
>> $my_log && echo configure-%p >> $my_log && /usr/bin/ls -l
/dev/bus/usb/$env{BUSNUM}/$env{DEVNUM} >> $my_log'"


The specified log file contains information like the following after I
restarted "systemd-udevd.service" and switched my printer on again.

2015-07-23T16:37:59,712732516+0200
lp-/devices/pci0000:00/0000:00:02.1/usb1/1-2
crw-rw---- 1 root users 189, 4 Jul 23 16:37 /dev/bus/usb/001/005
2015-07-23T16:37:59,729717592+0200
configure-/devices/pci0000:00/0000:00:02.1/usb1/1-2
crw-rw---- 1 root users 189, 4 Jul 23 16:37 /dev/bus/usb/001/005



(In reply to Dr. Werner Fink from comment #29)
> ENV{ID_USB_INTERFACES}=="*:0701??:*", MODE:="0664", GROUP:="lp"
> 
> that means with colon a later override will be avoided

The specified log file contains information like the following after another
restart of udevd and my printer.

2015-07-23T16:45:52,895724921+0200
lp-/devices/pci0000:00/0000:00:02.1/usb1/1-2
crw-rw-r-- 1 root lp 189, 5 Jul 23 16:45 /dev/bus/usb/001/006
2015-07-23T16:45:52,907780826+0200
configure-/devices/pci0000:00/0000:00:02.1/usb1/1-2
crw-rw-r-- 1 root lp 189, 5 Jul 23 16:45 /dev/bus/usb/001/006


Does such a debug display mean that the setting of device file permissions by
the udev assignment key "GROUP" alone is fragile on my Tumbleweed system in the
shown constellation so far?


You are receiving this mail because: