From mboxrd@z Thu Jan 1 00:00:00 1970 From: Morgan Read Date: Sat, 29 Jul 2006 11:29:15 +0000 Subject: Re: udev.rules can't set group or mode? Message-Id: <44CB468B.6030706@read.org.nz> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1159412924==" List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1159412924== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig194DF5A641335FCA362F84CB" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig194DF5A641335FCA362F84CB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Kay Sievers wrote: > On Fri, 2006-07-28 at 16:25 +1200, Morgan Read wrote: >> I don't seem to be able to set the mode or group for '/dev/ttyUSB1' >> >> Following Daniel Drake's howto here: >> http://www.reactivated.net/writing_udev_rules.html >> >> Without the rule: >> '/dev/ttyUSB1' has group=3Duucp and mode=3D0660. >> >> With the rule (DRIVER=3D"ark3116", NAME=3D"nokiaca42clone", >> SYMLINK=3D"ttyUSB%n", GROUP=3D"uucp", MODE=3D"0666"): >> '/dev/nokiaca42clone' and '/dev/ttyUSB1' (a symlink) get made OK, but >> with group=3Droot and mode=3D0600 (not 'uucp' and '0666'). >> >> Here's output of udevtest: >> [morgan@morgansmachine ~]$ udevtest /class/tty/ttyUSB1 >> main: looking at device '/class/tty/ttyUSB1' from subsystem 'tty' >> udev_rules_get_name: reset symlink list >> udev_rules_get_name: add symlink 'ttyUSB1' >> udev_rules_get_name: rule applied, 'ttyUSB1' becomes 'nokiaca42clone' >> create_node: creating device node '/dev/nokiaca42clone', major =3D '18= 8', >> minor =3D '1', mode =3D '0600', uid =3D '0', gid =3D '0' >> create_node: creating symlink '/dev/ttyUSB1' to 'nokiaca42clone' >> main: run: 'socket:/org/kernel/udev/monitor' >> main: run: '/lib/udev/udev_run_devd' >> main: run: 'socket:/org/freedesktop/hal/udev_event' >> main: run: '/sbin/pam_console_apply /dev/nokiaca42clone /dev/ttyUSB1 >=20 > A similar rule works for me. What version of udev is that? >=20 > Why do you rename the device instead of creating just a link? >=20 > And better use "+=3D" for symlinks, and '=3D=3D' for compares like DRIV= ER, > '"' assignes values. Hello Kay, thanks: [morgan@morgansmachine ~]$ rpm -q udev udev-084-13 Changed rule to: DRIVER=3D=3D"ark3116", SYMLINK+=3D"nokiaca42clone", MODE=3D"0666" (Was following the 0.6 version of http://www.reactivated.net/writing_udev_rules.html.) Now the device files have the correct group and owner, but mode wont change? With the new rule mode is 0660? Regards, M. --=20 Morgan Read NEW ZEALAND fedora: Freedom Forever! http://fedoraproject.org/wiki/Overview --------------enig194DF5A641335FCA362F84CB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFEy0aMp/Qnh6YenUARAs0YAJ0dcdf8QZr9Moh/maaAkIVB16CeeACginyq xHsG579qtDeemEalH61LNLM= =TpeI -----END PGP SIGNATURE----- --------------enig194DF5A641335FCA362F84CB-- --===============1159412924== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============1159412924== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel --===============1159412924==--