From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Geurts Date: Mon, 15 Dec 2008 15:24:04 +0000 Subject: Re: udev lvm permisions Message-Id: <1229354644.22135.8.camel@linux-pqqd.site> List-Id: References: <1229336451.19633.4.camel@linux-pqqd.site> In-Reply-To: <1229336451.19633.4.camel@linux-pqqd.site> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello kay, Thanks for your reply! Indeed it's about a logical volume I want to mount as a normal user. I've already had discussion with Michal Soltys, he sugested to create a rule according to the following: ACTION!="add|change", GOTO="dm_end" KERNEL!="dm*", GOTO="dm_end" PROGRAM="/sbin/dmsetup info -c --noheadings -o uuid -j%M -m%m", ENV{DM_UUID}="%c" ENV{DM_UUID}="LVM-N28qi20mqjyPR150TYivmJzvkn8zzpi2VEhSFspDTiAxn2GLFC7xJ8Lfh12dmGH0", GROUP="users", MODEf0 LABEL="dm_end" I've created this rule but it applies to the kernel device... /dev/dm-*. What I need is a rule that changes the ownership of /dev/mapper/HomeVolume. Thats where I stand now, so any suggestions are welcome! Greetings, Geert On Mon, 2008-12-15 at 15:59 +0100, Kay Sievers wrote: > On Mon, Dec 15, 2008 at 11:20, Geert Geurts wrote: > > I have created a encrypted lvm home volume for placing personal files, > > and using them on different distributions. > > I'm using OpenSuse 11 and Ubuntu 8.10 both distributions are configured > > to decrypt the HomeVolume on login using pam_mount. The problem is that > > the permissions to the HomeVolume are not set correctly by Suse, so the > > volume cannot be decrypted and cannot be mounted. > > How can I create a udev rule that applies only to one LVM volume? > > What kind of permissions? The ownership of the block device? Do you > need to mount it as a user, not as root? > > Kay