Skip to contentSkip to conversation

vgscan changing/resetting perms?

linux-lvm Jeff Bethke 2 participants 3 messages Feb 16, 2005

lore
Share & tools
lore
#0 lore raw

Hello!
I have a LVM2 question that I am guessing has been asked before,
however, I can't find it anywhere in the archives. The problem is simple... I create a volume group called 'vgfoo' at /dev/vgfoo. I create all the devices logical volumes under it. I change the perms for the logical volumes/volume groups to a user:groupid other than root:root. At this point everything is fine.

Then I go ahead and reboot the host or someone comes along and runs a vgscan. VOILA! The perms for those files reset to root:root. How do I prevent that from happeneing? I want it so that I can make a device and set its perms to some user, and forget about it. Is that even possible? If so, how? Or, what am I doing wrong in setting up the lv/vg's?

TIA for any answers!

-jeff

#1 lore raw
Quoted 5 lines · Jeff Bethke

Then I go ahead and reboot the host or someone comes along and runs a
vgscan. VOILA! The perms for those files reset to root:root. How do
I prevent that from happeneing? I want it so that I can make a device
and set its perms to some user, and forget about it. Is that even
possible? If so, how? Or, what am I doing wrong in setting up the lv/vg's?

One generally doesn't let non-root users have direct access to devices. Instead you should format and mount the filesystems on those drives and give users access to that.

-JM

Signature · 2 lines
Keep London tidy... Shoot a pigeon.
This message is PGP/MIME signed.
#2 lore raw

I totally agree for general purposes. However, the users/app in question are Oracle/Sybase Databases writing directly to the devices.

-jeff

Quoted 21 lines · Jason Martin
Quoted 3 lines · Jeff Bethke

Then I go ahead and reboot the host or someone comes along and runs a vgscan. VOILA! The perms for those files reset to root:root. How do I prevent that from happeneing? I want it so that I can make a device and set its perms to some user, and forget about it. Is that even possible? If so, how? Or, what am I doing wrong in setting up the lv/vg's?

One generally doesn't let non-root users have direct access to devices. Instead you should format and mount the filesystems on those drives and give users access to that.

-JM

------------------------------------------------------------------------

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/