Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ttyS0 - ownership as root:dialout
Date: Mon, 20 Jan 2014 17:15:34
Message-Id: 20140120171546.GE8475@syscon7.ed.shawcable.net
In Reply to: Re: [gentoo-user] ttyS0 - ownership as root:dialout by Joseph
1 On 01/20/14 10:02, Joseph wrote:
2 >On 01/20/14 18:45, Alan McKinnon wrote:
3 >>On 01/20/14 18:30, Joseph wrote:
4 >>> After upgrade to "systemd" my /dev/ttyS0 shows up as: root:dialout
5 >>> ownership and permission 600
6 >>>
7 >>> When I change as root manually to: chown uucp:dialout /dev/ttyS0
8 >>> chmod 666 /dev/ttyS0
9 >>>
10 >>> after restart it goes back to previous setting: root:dialout 600
11 >>> How to change it?
12 >>>
13 >>> My VituralBox complain and will not start with owner: root:dialout
14 >>> /dev/ttyS0
15 >>>
16 >>
17 >>
18 >>It's a udev rule. Mine looks like this, tweak yours
19 >>
20 >>$ grep -r uucp /lib/udev/rules.d/
21 >>/lib/udev/rules.d/50-udev-default.rules:KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
22 >>GROUP="uucp"
23 >>
24 >>
25 >>
26 >>You'd put your file in /etc/udev/rules.d/, not in /lib/ as above, that's
27 >>the as-shipped location for defaults
28 >>
29 >>--
30 >>Alan McKinnon
31 >>alan.mckinnon@×××××.com
32 >
33 >Thanks for the hint Alan.
34 >Mine looks like this:
35 >grep -r dialout /lib/udev/rules.d/
36 >/lib/udev/rules.d/50-udev-default.rules:KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
37 >
38 >I think the group "dialout" is OK. What the Virtualbox doesn't like is the ownership, the first part "root" (root:dialout)
39 >How to influence the first part.
40 >
41 >The strange part is that I have upgraded two system and one is shoring ttyS0 as:
42 >uucp:dialout
43 >
44 >and the another one as:
45 >root:dialout.
46
47 Looking into files: /lib/udev/rules.d/50-udev-default.rules for tty it has:
48
49 SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
50 SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
51 SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
52 SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
53 KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
54
55 So I suppose to create my own file in /etc with:
56
57 SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
58 SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0666"
59 KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="uucp"
60
61
62 --
63 Joseph