From mboxrd@z Thu Jan 1 00:00:00 1970 From: Morgan Read Date: Mon, 31 Jul 2006 21:55:08 +0000 Subject: Re: udev.rules can't set group or mode? Message-Id: <44CE7C3C.3070805@read.org.nz> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1515307157==" List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1515307157== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD8B47923A7733C316406956D" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD8B47923A7733C316406956D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kay Sievers wrote: > On Sun, 2006-07-30 at 17:02 +1200, Morgan Read wrote: >> 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: >> ... >>>> [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.) >>> Right, that should probably be mentioned, that we don't recommend >>> changing 'default' names, except to make them match the 'default', li= ke >>> moving the input devices in a subdirectory where they have always liv= ed, >>> long before udev. >>> >>> Better create only symlinks, and nothing else will break by making >>> (silly) assumptions about /dev. >>> >>>> Now the device files have the correct group and owner, but mode wont= >>>> change? With the new rule mode is 0660? >>> That may be Fedora's pam_console, that comes into your way and change= s >>> 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? >> '1', mode =3D '0660', uid =3D '0', gid =3D '14' >=20 > No, it's not pam_console, udevd creates the device with 0660. Eigther > your rule format is wrong, or some later rule matches too and overwrite= s > the previous mode. Hi Kay, Many thanks - changed name from 10-local.rules to z-local.rules. Now works fine. But, I understood that correct protocol was to name custom rules to run before defaults - any risks in my new naming scheme? M. --=20 Morgan Read NEW ZEALAND fedora: Freedom Forever! http://fedoraproject.org/wiki/Overview --------------enigD8B47923A7733C316406956D 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 iD8DBQFEznxDp/Qnh6YenUARAsQeAJ9+uiiMMlg2Lajh2Rrs03iimSlcGgCfa7kU grBgFqbrOuYgmu6Q4YLrjkY= =UTBp -----END PGP SIGNATURE----- --------------enigD8B47923A7733C316406956D-- --===============1515307157== 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 --===============1515307157== 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 --===============1515307157==--