Re: udev lvm permisions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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", MODE=660

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 <begeert@xxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux