Mailinglist Archive: opensuse (4054 mails)
| < Previous | Next > |
SUSE 10 udev and ttySx
- From: Roger Oberholtzer <roger@xxxxxx>
- Date: Wed, 18 Jan 2006 11:53:52 +0100
- Message-id: <1137581632.6381.16.camel@acme>
Hello
I am making a udev rule for ttyS0, ttyS1 and ttyS2. The main thing I
want to do is set the permissions to rw for everybody. The ports have
things like GPS receivers and VCRs attached. So there are no devices
SUSE Linux recognizes or has been told to use (afaik).
I see that my udev rules are installed correctly. The command
'udevtest /sys/class/tty/ttyS0 tty' lists:
main: looking at device '/class/tty/ttyS0' from subsystem 'tty'
main: opened class_dev->name='ttyS0'
udev_rules_get_name: rule applied, 'ttyS0' becomes 'ttyS0'
udev_rules_get_name: reset symlink list
udev_rules_get_name: add symlink 'gps'
create_node: creating device node '/dev/ttyS0', major = '4', minor =
'64', mode = '0666',
uid = '0', gid = '14'
create_node: creating symlink '/dev/gps' to 'ttyS0'
which looks fine (mode=0666 and symlink in place). I do the same for
ttyS1 and ttyS2, with similar results.
My problem is that ttyS0 (only) does not maintain the permissions and
owner. ttyS1 and ttyS2 do. The symlink for all remain.
crw------- 1 roger uucp 4, 64 2006-01-18 11:21 /dev/ttyS0
crw-rw-rw- 1 root uucp 4, 65 2006-01-18 11:21 /dev/ttyS1
crw-rw-rw- 1 root uucp 4, 66 2006-01-18 11:21 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 2006-01-18 11:21 /dev/ttyS3
crw-rw---- 1 root uucp 4, 68 2006-01-18 11:21 /dev/ttyS4
crw-rw---- 1 root uucp 4, 69 2006-01-18 11:21 /dev/ttyS5
crw-rw---- 1 root uucp 4, 70 2006-01-18 11:21 /dev/ttyS6
crw-rw---- 1 root uucp 4, 71 2006-01-18 11:21 /dev/ttyS7
lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/gps -> ttyS0
lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/photocell -> ttyS1
lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/vcr -> ttyS2
This means that someone somewhere is modifying the ttyS0 serial port
after udev sets it up. But I do not know who. It is no software that I
have installed, as none of that runs. I do not have ppp installed
(unless it is some default activity set up by the SUSE 10 install). I
see that the port belongs to me, but I do not know why.
Any ideas?
--
Roger Oberholtzer
I am making a udev rule for ttyS0, ttyS1 and ttyS2. The main thing I
want to do is set the permissions to rw for everybody. The ports have
things like GPS receivers and VCRs attached. So there are no devices
SUSE Linux recognizes or has been told to use (afaik).
I see that my udev rules are installed correctly. The command
'udevtest /sys/class/tty/ttyS0 tty' lists:
main: looking at device '/class/tty/ttyS0' from subsystem 'tty'
main: opened class_dev->name='ttyS0'
udev_rules_get_name: rule applied, 'ttyS0' becomes 'ttyS0'
udev_rules_get_name: reset symlink list
udev_rules_get_name: add symlink 'gps'
create_node: creating device node '/dev/ttyS0', major = '4', minor =
'64', mode = '0666',
uid = '0', gid = '14'
create_node: creating symlink '/dev/gps' to 'ttyS0'
which looks fine (mode=0666 and symlink in place). I do the same for
ttyS1 and ttyS2, with similar results.
My problem is that ttyS0 (only) does not maintain the permissions and
owner. ttyS1 and ttyS2 do. The symlink for all remain.
crw------- 1 roger uucp 4, 64 2006-01-18 11:21 /dev/ttyS0
crw-rw-rw- 1 root uucp 4, 65 2006-01-18 11:21 /dev/ttyS1
crw-rw-rw- 1 root uucp 4, 66 2006-01-18 11:21 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 2006-01-18 11:21 /dev/ttyS3
crw-rw---- 1 root uucp 4, 68 2006-01-18 11:21 /dev/ttyS4
crw-rw---- 1 root uucp 4, 69 2006-01-18 11:21 /dev/ttyS5
crw-rw---- 1 root uucp 4, 70 2006-01-18 11:21 /dev/ttyS6
crw-rw---- 1 root uucp 4, 71 2006-01-18 11:21 /dev/ttyS7
lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/gps -> ttyS0
lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/photocell -> ttyS1
lrwxrwxrwx 1 root root 5 2006-01-18 11:21 /dev/vcr -> ttyS2
This means that someone somewhere is modifying the ttyS0 serial port
after udev sets it up. But I do not know who. It is no software that I
have installed, as none of that runs. I do not have ppp installed
(unless it is some default activity set up by the SUSE 10 install). I
see that the port belongs to me, but I do not know why.
Any ideas?
--
Roger Oberholtzer
| < Previous | Next > |