On Wed, Nov 28, 2018 at 3:45 PM Ben Koenig <[email protected]> wrote:

Even if you removed your custom rules, there might still be a default rule
that triggers for that device.
Maybe try searching through the config files in rules.d for the
vendor:product IDs of that particular adapter.

On Mon, Nov 26, 2018 at 2:32 PM Galen Seitz <[email protected]> wrote:

Hi,

When I connect a Prolific-based USB serial adapter to my CentOS 7
machine, the corresponding ttyUSB device has dialout group ownership.

[root@toto ~]# ls -l /dev/ttyUSB*
crw-rw----. 1 root dialout 188, 0 Nov 26 14:15 /dev/ttyUSB0

However, when I connect an FTDI-based serial adapter, the device has
root group ownership.

[root@toto ~]# ls -l /dev/ttyUSB*
crw-rw----. 1 root dialout 188, 0 Nov 26 14:15 /dev/ttyUSB0
crw-rw----+ 1 root root    188, 1 Nov 26 14:16 /dev/ttyUSB1

Note the trailing '+' on the permissions.  It appears something is
setting up an ACL, but only for the FTDI.

[root@toto ~]# getfacl /dev/ttyUSB1
getfacl: Removing leading '/' from absolute path names
# file: dev/ttyUSB1
# owner: root
# group: root
user::rw-
user:galens:rw-
group::rw-
mask::rw-
other::---

The ACL suggests that I should have rw access, but kermit can't open the
port.

Note that I removed all of my custom udev rules and ran udevadm control
--reload-rules before performing this test.

I can sudo to workaround the problem, but I shouldn't have to.  Any
ideas as to what is going on?

I'm finally came back to this problem yesterday. Thanks to everyone who gave me suggestions.

The root cause turned out to be the openocd package. The EPEL 7 package is still using old udev rules that refer to a plugdev group. plugdev does not exist in EPEL 7. I submitted a bug requesting that the package be updated to the latest version wherein this problem has been fixed.
<https://bugzilla.redhat.com/show_bug.cgi?id=1667543>

For the time being, I have removed the openocd package, as I currently don't need it.

BTW, from the udev man page:
"The udev rules are read from the files located in the system rules directory /usr/lib/udev/rules.d, the volatile runtime directory /run/udev/rules.d and the local administration directory /etc/udev/rules.d." I should have read the udev man page sooner. It would have saved some flailing.


galen
--
Galen Seitz
[email protected]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to