From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 26 Oct 2004 14:47:32 +0000 Subject: Re: permissions: udev vs. pam_devperm.so Message-Id: <20041026144732.GB2009@vrfy.org> List-Id: References: <417DF0A8.2060108@bio.ifi.lmu.de> In-Reply-To: <417DF0A8.2060108@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Oct 26, 2004 at 03:49:12PM +0200, Frank Steiner wrote: > Kay Sievers wrote > > > >I don't think that this will work, as there should be a remove event > >before you get a new add event and the node will be deleted and recreated > >without anything to preserve. You may check the inode number, it should > >have changed. > > Ok, I see... So, do you think it was possible to make sth. similar to > pam_devperm? E.g., my /etc/logindevperms has a line > > :0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3 > > When a user logs in with kdm (/etc/pam.d/kdm defines using pam_devperm.so), > /dev/dvd (i.e., the device this link points to, here: /dev/hdc) will be > set to 600 and the user logging in will be the owner. > Makes sense for a certain set of devices. > > Maybe udev could use pam_devperm in a similar way? Or allow a special > keyword like "console" as owner in the permissions file, setting the > user who owns the console as owner of the device (and the default if > no such user currently exists)? This way, devices added after the user > has logged in, could be assigned to the locally logged-in user, too. The problem is that every distribution has its own concept of "local" or "console" users, so the best thing seems to call a distribution specific permission-restore-script from dev.d/. If this will not work for you, let us know and we will figure something out. Thanks, Kay ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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