[sane-devel] "journalctl -b" command reveals inproper libsane permissions and an invalid key.

Thierry Huchard thierry at ordissimo.com
Fri Apr 16 07:54:58 BST 2021


Le 2021-04-15 23:53, pj.world at gmx.com a écrit :
> I decided to review the "journalctl -b" command output of my desktop
> computer and came upon the following entries each after one another in
> lines 983-986. I have linuxmint 20.1 installed.
> 
> Apr 14 15:04:24 user-HP-ProDesk-405-G1-MT systemd-udevd[494]:
> Configuration file
> /etc/udev/rules.d/60-brother-brscan4-libsane-type1.rules is marked
> executable. Please remove executable permission bits. Proceeding 
> anyway.
> Apr 14 15:04:24 user-HP-ProDesk-405-G1-MT systemd-udevd[494]:
> /etc/udev/rules.d/60-brother-brscan4-libsane-type1.rules:9 Invalid key
> 'SYSFS'
> Apr 14 15:04:24 user-HP-ProDesk-405-G1-MT systemd-udevd[494]:
> /etc/udev/rules.d/60-brother-libsane-type1-inst.rules:14 Invalid key 
> 'SYSFS'
> 
> Would you possibly have any suggestion on how I should or could address
> the messages?
> 

Your file does not have adequate rights, the udev rules are not 
executable files and are owned by root:

# sudo chown root:root /etc/udev/rules.d/60-brother-libsane-type1.rules
# sudo chmod 0644 /etc/udev/rules.d/60-brother-libsane-type1.rules

These two commands will restore the rights of the file!

SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"

The two lines above verify that the usb device is a brother brand,
SYSFS does not exist or no longer exists as attributes, I suggest you 
delete the line. The work is done by the remaining line:

ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"

# sudo udevadm control --reload-rules && udevadm trigger

This command allows you to reload udev rules without rebooting!

Thierry

> Thanks



More information about the sane-devel mailing list