Closed wucke13 closed 1 month ago
@wucke13 , GROUP=‘plugdev’
is not enough for the current user to get permissions?
It is, on distros that use the plugdev group menchanism. Udev's uaccess
is a completely orthogonal mechanism to provide access: essentially, for each device that was tagged uaccess
, in 73-seat-late.rules
an internal function of udev is called to grant access to all users that have a local seat.
The mechanism is widely used, but unfortunately under-documented, as pointed out in https://github.com/systemd/systemd/issues/4288. However, many distros consider deprecating plugdev
and instead moving to uaccess as the cleaner approach, i.e. as mentioned in the archwiki: https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices
@Fantu , may I have your opinion on this? (Pull request)
Fixed by 947320fca4878b46beefbee05e47279c3b27f94e
As hinted here, udev
uaccess
is granted by/usr/lib/udev/rules.d/73-seat-late.rules
. So having a rule add theuaccess
tag after73-seat-late.rules
ran has not effect. The rules are ran in lexical order, so to be compatible with theuacccess
system, the rule must be renamed, i.e. to70-CH341.rules
.https://github.com/bigbigmdm/IMSProg/blob/062b2f0488d2e8fc4adbabaffbff6fb958ad26f2/IMSProg_programmer/other/99-CH341.rules#L3-L3