From: Kay Sievers Date: Sun, 30 Jul 2006 10:19:23 +0000 Subject: Re: udev.rules can't set group or mode? Message-Id: <1154254763.10624.3.camel@pim.off.vrfy.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org 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"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. >=20 > 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' 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 overwrites the previous mode. Kay ------------------------------------------------------------------------- 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=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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