ISDN: who/what sets file-ownership for /dev/ttyIx ?
- system is mostly an mail-to-sms gateway - was upgraded from 9.0 or 9.1 to 10.0RC1 - system has a couple of HFC-PCI ISDN TA cards - smsclient is now unable to open the /dev/ttyIx devices - it turns out the /dev/ttyIx devices are owned by root.root, whereas they almost certainly were owned by root.uucp earlier? (as are /dev ttySx) Who or what determines the ownership of those devices? /Per Jessen, Zürich
On Sun, Oct 23, 2005 at 03:44:27PM +0200, Per Jessen wrote:
- system is mostly an mail-to-sms gateway - was upgraded from 9.0 or 9.1 to 10.0RC1 - system has a couple of HFC-PCI ISDN TA cards - smsclient is now unable to open the /dev/ttyIx devices - it turns out the /dev/ttyIx devices are owned by root.root, whereas they almost certainly were owned by root.uucp earlier? (as are /dev ttySx)
Who or what determines the ownership of those devices?
udev does. Ciao, marcus
Marcus Meissner wrote:
On Sun, Oct 23, 2005 at 03:44:27PM +0200, Per Jessen wrote:
- system is mostly an mail-to-sms gateway - was upgraded from 9.0 or 9.1 to 10.0RC1 - system has a couple of HFC-PCI ISDN TA cards - smsclient is now unable to open the /dev/ttyIx devices - it turns out the /dev/ttyIx devices are owned by root.root, whereas they almost certainly were owned by root.uucp earlier? (as are /dev ttySx)
Who or what determines the ownership of those devices?
udev does.
Thanks Marcus - udev is new to me, so these are potentially stupid questions: /etc/udev/rules.d/50-udev.rules: KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp" Seems to say that ttyIx will have group=uucp - which I was hoping for. /etc/udev/rules.d/45-isdn.rules doesn't say anything about ttyIx at all. So, although 50-udev.rules seem to indicate that ttyIx will have group=uucp, they still end up with group=root. /dev/ttyIx are also listed in /etc/udev/static_devices.txt, but as far as I can see that is not related to ownership. /Per Jessen, Zürich
Per Jessen wrote:
[...] /etc/udev/rules.d/50-udev.rules:
KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"
Seems to say that ttyIx will have group=uucp - which I was hoping for.
/etc/udev/rules.d/45-isdn.rules doesn't say anything about ttyIx at all.
So, although 50-udev.rules seem to indicate that ttyIx will have group=uucp, they still end up with group=root. /dev/ttyIx are also listed in /etc/udev/static_devices.txt, but as far as I can see that is not related to ownership.
If they are in there it means that they are created during boot rather than dynamically by udev. Unfortunately that file only specifies permissions but no ownership. I guess the best you can do is to use boot.local to adjust the ownership. Note that group uucp really only is for uucp. Don't use it for any other purpose. cu Ludwig -- (o_ Ludwig Nussel //\ SUSE LINUX Products GmbH, Development V_/_ http://www.suse.de/
Ludwig Nussel wrote:
Per Jessen wrote:
So, although 50-udev.rules seem to indicate that ttyIx will have group=uucp, they still end up with group=root. /dev/ttyIx are also listed in /etc/udev/static_devices.txt, but as far as I can see that is not related to ownership.
If they are in there it means that they are created during boot rather than dynamically by udev. Unfortunately that file only specifies permissions but no ownership. I guess the best you can do is to use boot.local to adjust the ownership. Note that group uucp really only is for uucp. Don't use it for any other purpose.
Thanks Ludwig - more questions :-) why was the group changed from uucp to root in 10.0? I've just checked a 9.0 system - here the ttyIx devices are in group uucp. The ttyIx devices really just emulate modem-devices, a bit like ttyS* - which by the way are still in group uucp. I'm not really too bothered which user/group I need to use for ttyIx, as long as it isn't root. What would you suggest I use? I'm not sure, but to me it looks like something got unintentionally changed with ttyIx? /Per Jessen, Zürich
Per Jessen wrote:
Ludwig Nussel wrote:
Per Jessen wrote:
So, although 50-udev.rules seem to indicate that ttyIx will have group=uucp, they still end up with group=root. /dev/ttyIx are also listed in /etc/udev/static_devices.txt, but as far as I can see that is not related to ownership.
If they are in there it means that they are created during boot rather than dynamically by udev. Unfortunately that file only specifies permissions but no ownership. I guess the best you can do is to use boot.local to adjust the ownership. Note that group uucp really only is for uucp. Don't use it for any other purpose.
Thanks Ludwig - more questions :-)
why was the group changed from uucp to root in 10.0? I've just checked a 9.0 system - here the ttyIx devices are in group uucp. The ttyIx devices really just emulate modem-devices, a bit like ttyS* - which by the way are still in group uucp.
I don't think that change was intentional. Please file a bug report to get it fixed for 10.1.
I'm not really too bothered which user/group I need to use for ttyIx, as long as it isn't root. What would you suggest I use?
Create a dedicated group for your purpose or use ACLs if you have multiple users. Just chown the device if you have only one user who accesses it. cu Ludwig -- (o_ Ludwig Nussel //\ SUSE LINUX Products GmbH, Development V_/_ http://www.suse.de/
Ludwig Nussel wrote:
I don't think that change was intentional. Please file a bug report to get it fixed for 10.1.
https://bugzilla.novell.com/show_bug.cgi?id=130229 /Per Jessen, Zürich
participants (3)
-
Ludwig Nussel
-
Marcus Meissner
-
Per Jessen