From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 13 Nov 2006 18:22:05 +0000 Subject: Re: Permissions question with reboots and udev Message-Id: <20061113182205.GA3721@kroah.com> List-Id: References: <335DD0B75189FB428E5C32680089FB9F8040C6@mtk-sms-mail01.digi.com> In-Reply-To: <335DD0B75189FB428E5C32680089FB9F8040C6@mtk-sms-mail01.digi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Nov 13, 2006 at 10:15:56AM -0600, Kilau, Scott wrote: > (Resending to list, first time it got rejected as spam...) > > Hi everyone, > Sorry to bug again. > > > Another quick question that probably has a quick answer. > > One of the big "issues" our (Digi's) serial port users seem to always > have is > having permissions and ownership of their ttys preserved across reboots. > > With non-udev, I wrote a script that would update the major values of > their > existing "Digi" tty entries in /dev, while maintaining the current > permissions/ownerships > across reboots. > > With udev, I am unsure if there is any way to do this... > > As far as I can tell, if someone does something like: > > chown uucp:uucp /dev/ttya01 > > Then reboots the system, (or even reloads the driver), > the devices get blown away, and recreated, and end up back as root:root. > > I know you can specify a udev rule to create the devices as a specific > permission/ownership, > but that is a sledgehammer approach to it... Why do you think so? > I am thinking I could make a rule to ignore "removal" on my devices, > which I suspect > will allow me to keep to the ttys around in /dev, but I am stumped on > making a "rule" > to "preserve" the existing permission/ownership when/if the device gets > readded... > > Any ideas? Thoughts? Just add a udev rule that sets the correct owner:group for your devices. That's what the distros do for all other devices. Hope this helps, greg k-h ------------------------------------------------------------------------- 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel