From mboxrd@z Thu Jan 1 00:00:00 1970 From: Morgan Read Date: Sun, 30 Jul 2006 05:02:19 +0000 Subject: Re: udev.rules can't set group or mode? Message-Id: <44CC3D5B.4040206@read.org.nz> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1744638136==" List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1744638136== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9A396D966F3C3F67D0183E06" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9A396D966F3C3F67D0183E06 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kay Sievers wrote: > On Sat, 2006-07-29 at 23:29 +1200, Morgan Read wrote: >> Kay Sievers wrote: >>> On Fri, 2006-07-28 at 16:25 +1200, Morgan Read wrote: =2E.. >> [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.) >=20 > Right, that should probably be mentioned, that we don't recommend > changing 'default' names, except to make them match the 'default', like= > moving the input devices in a subdirectory where they have always lived= , > long before udev. >=20 > Better create only symlinks, and nothing else will break by making > (silly) assumptions about /dev. >=20 >> Now the device files have the correct group and owner, but mode wont >> change? With the new rule mode is 0660? >=20 > That may be Fedora's pam_console, that comes into your way and changes > it back. Look at udevtest again to see what udev is doing. Hmm, but according to udevtest (below), pam is the last thing to run? And, l 4 of udevtest says it's creating "mode =3D '0660'", which ain't right? If the problem is pam_console, how would I deal to it? M. [morgan@morgansmachine ~]$ udevtest /class/tty/ttyUSB1 main: looking at device '/class/tty/ttyUSB1' from subsystem 'tty' udev_rules_get_name: add symlink 'nokiaca42clone' udev_rules_get_name: rule applied, 'ttyUSB1' becomes 'ttyUSB1' create_node: creating device node '/dev/ttyUSB1', major =3D '188', minor = =3D '1', mode =3D '0660', uid =3D '0', gid =3D '14' create_node: creating symlink '/dev/nokiaca42clone' to 'ttyUSB1' 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/ttyUSB1 /dev/nokiaca42clone' [morgan@morgansmachine ~]$ --=20 Morgan Read NEW ZEALAND fedora: Freedom Forever! http://fedoraproject.org/wiki/Overview --------------enig9A396D966F3C3F67D0183E06 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 iD8DBQFEzD1ip/Qnh6YenUARAj4sAJ0XjMPY1eA1zX1NWxPPXZWGmXD6UQCePRoW Os4OzLm1AuWidFewCm/jDgo= =zVTd -----END PGP SIGNATURE----- --------------enig9A396D966F3C3F67D0183E06-- --===============1744638136== 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 --===============1744638136== 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 --===============1744638136==--