On 01/21/14 08:22, Alan McKinnon wrote:
[snip]
I recompile the VirtualBox-bin but it doesn't help it still complain
about the /dev/ttyS0 access
and upon rebooting the /dev/ttyS0 has permission and ownership as:
crw-rw---- 1 root dialout 4, 64 Jan 20 19:14 /dev/ttyS0
and it should be uucp:dialout (666)
What is confusing me is that on one box systemd is upon reboot make
/dev/ttyS0:
crw-rw-rw- 1 uucp dialout 4, 64 Jan 20 14:30 /dev/ttyS0
and on another box it wirtes:
crw-rw---- 1 root dialout 4, 64 Jan 20 19:14 /dev/ttyS0
I don't remember writing any rules for ttyS0
There's a few ways this can come about. Most often you emerge something
that wants to write new configs that are config-protected and you don't
accept the changes. First step is to find what causes the difgfrent
behaviour and you need to take a logical step-by-step approach
Compare the udev rules files on both machines in /lib/udev and /etc/udev
and make the non-working host the samne as the working one.
Do these two machines run the same arch and have similar services running?
Both machines are amd64 and have similar setup including the same kernel
verion: linux-3.10.7-gentoo-r1
The machine that identify ttyS0 as:
crw-rw---- 1 root dialout 4, 64 Jan 21 09:04 /dev/ttyS0
has in: /lib/udev/rules.d/50-udev-default.rules
SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
GROUP="dialout"
The machine that identify ttyS0 as:
crw-rw-rw- 1 uucp dialout 4, 64 Jan 20 14:30 /dev/ttyS0
has in: /lib/udev/rules.d/50-udev-default.rules
SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
GROUP="dialout"
So the settings is identical, and I don't remember entering my own rules for
ttyS0.
Though one server is running hylafax the other doesn't.
--
Joseph