First thanks for the reply.
I added in /etc/udev/permissions.d/50-udev.permissions the line:
mapper/*:root:disk:0660
There are 2 files in /dev/mapper:
control vg00-lvroot (my lv for the / partition)
The control file (which I don't really care about the permissions) changed to owner "root" group "disk" with 0660. So I know my entry in the permissions file is ok.
But the lv "vg00-lvroot" still has owner "root" group "root" and permissions of "0600".
Any ideas?
Deron Meranda wrote:
On Tue, 28 Dec 2004 06:48:47 -0500, Michael J. Pawlowsky <mikep@xxxxxxxxxxxxxxxxxx> wrote:
Does anyone know where the script that creates the logical volumes is and if I can modify that to give the lv the proper permissions?
I'm speculating this will work, since LVM is initialized rather early in the boot process (I've not tried this)....
LVM2 creates all the device files via the device mapper (udev) interface. Thus the ownership and persmissions are controlled by the udev configurations, which are under /etc/udev/. In particular look for a file under /etc/udev/permissions.d/
It contains a list of device file "patterns" and the appropriate arrtributes that the device file should have (owner, group, and permission). There probably are no entries for any LVM devices, and so the default owner and permission are as listed in the udev.conf file (root:root 0600).
Note that rather than modify that file, you can just create another permissions file (udev reads all files in that directory that have a .permissions extension).
Read man udev.