[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: user perms



On 6/16/22 05:25, Anssi Saari wrote:
David Wright <deblis@lionunicorn.co.uk> writes:

As it happens, I find I have (but don't use):
$ grep -i ttyusb /lib/udev/rules.d/*
I actually found this in 50-udev-default.rules:

KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"

So that should set the group for ttySx and ttyUSBx also to dialout and
in fact I see exactly that happening in my Debian 11 router which has
devices ttyS0-ttyS3 and ttyUSB0-ttyUSB4:

$ ls -l /dev/ttyUSB* /dev/ttyS*
crw-rw---- 1 root dialout   4, 64 Jun 13 12:12 /dev/ttyS0
crw-rw---- 1 root dialout   4, 65 Jun 13 12:12 /dev/ttyS1
crw-rw---- 1 root dialout   4, 66 Jun 13 12:12 /dev/ttyS2
crw-rw---- 1 root dialout   4, 67 Jun 13 12:12 /dev/ttyS3
crw-rw---- 1 root dialout 188,  0 Jun 13 12:12 /dev/ttyUSB0
crw-rw---- 1 root dialout 188,  1 Jun 13 12:12 /dev/ttyUSB1
crw-rw---- 1 root dialout 188,  2 Jun 13 12:12 /dev/ttyUSB2
crw-rw---- 1 root dialout 188,  3 Jun 13 12:12 /dev/ttyUSB3
crw-rw---- 1 root dialout 188,  4 Jun 13 12:12 /dev/ttyUSB4

I didn't find a rule which sets the perms for these to 0660 but
something does that for me.

This rule comes with the udev package itself so it should be always
installed in a Debian installation.

Still, it seems for Gene these are overwritten somehow but I don't know
why or how. I have exactly one USB-to-serial cable I can try to plug in
and see what happens. However it's a CP210x and I think Gene's stuff is
>FTDI

Yes, I had so much trouble with prolific crap I eventually threrw it away.

$40 1998 dollars for junk. At Radio Shack of course. :(
And I wish someone could tell me how to fix tbirds busted quoting, I wrote
what starts with "yes" above and "I" CANNOT remove the quoting that looks like Anssi Saari wrote it. tbird is buggier than 10 day old road kill in August! I
just did fix it, but extensive keyboard calisthentics were required.

Thanks Anssi Saari, take care & stay well.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis


Reply to: