Skip to contentSkip to conversation

problem using udev with fedora core 5

DISCUSSION Davide Corrado 3 participants 3 messages Feb 1, 2007

lore
Share & tools
lore
#0 lore raw

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

[resend; this sourceforge mailinglist software is so braindead ...]

Quoted 25 lines

Hello,
i have a permission problem using udev with fedora core 5 (latest patches applied):
i read all the doc avaible and i created a new rule file called 10-konrad.rules. this file contains just this line:

KERNEL="ttyACM*", SYSFS{product}="Motorola Phone*", SYMLINK="V3", GROUP="uucp", MODE="0666"

i need this for using my v3 phone with kmobiletools.

well, the link V3 is created, but the permissions are the default ones (0660), not the ones included in the line.

i switched the log verbosity to info and i can see in the logs:

Feb  1 14:49:36 prodigal-son udevd-event[9856]: udev_rules_get_name:
reset symlink list
Feb  1 14:49:36 prodigal-son udevd-event[9856]: udev_rules_get_name:
add symlink 'V3'
Feb  1 14:49:36 prodigal-son udevd-event[9856]: udev_rules_get_name:
rule applied, 'ttyACM0' becomes 'ttyACM0'
Feb  1 14:49:36 prodigal-son udevd-event[9856]: create_node: creating
device node '/dev/ttyACM0', major = '166', minor = '0
', mode = '0660', uid = '0', gid = '14'
Feb  1 14:49:36 prodigal-son udevd-event[9856]: create_node: creating
Quoted 5 lines

symlink '/dev/V3' to 'ttyACM0'

so it seems to me that even reading my custom.rules files before the default one, it applies the default permission mask instead of the one i need "rw for everyone".

Try:
MODE:="0666"
so, no rule can overwrite the value. I hope the udev version isn't too old for this, better check the man page.

Kay

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Davide Corrado

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 4 lines · Kay Sievers

Try:

   MODE:="0666"

so, no rule can overwrite the value. I hope the udev version isn't too old for this, better check the man page.

I replied to the OP off-list (forgot to Reply-All), and he has since replied to advise that it did indeed work. :)

RW

- --

http://rlworkman.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFwhi17QPvQNDlLwQRAhbeAJ4kslb9OLQrRwsBSeCnkCKQBXsSPQCgnecO xIwVj2N26eIQCy/VSD2qOGk=3iwn
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel