Find the answer to your Linux question:
Results 1 to 2 of 2
Hi! I'm trying to set the permissions on a LVM volume so that a user (virtualbox) can use it. I've looked this up and it says to use udev rules. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    2

    Setting group on LVM using udev


    Hi!

    I'm trying to set the permissions on a LVM volume so that a user (virtualbox) can use it. I've looked this up and it says to use udev rules. I have this...


    # cat /etc/udev/rules.d/99-logger.rules
    ENV{DM_NAME}="vm1-logger", OWNER="vbox", GROUP="vboxusers", MODE:="660"
    #

    However, when I reboot the machine, EVERYTHING in /dev belongs to vbox:vboxusers and now just the lvm volume name 'logger'. Can anybody give any insight on what's going on here?

    Thanks!

  2. #2
    Just Joined!
    Join Date
    Dec 2011
    Posts
    2
    Strange. I did a few things and ended up with this in the udev rules...


    $ cat 92-local-vbox-permissions.rules
    ENV{DM_VG_NAME}=="vm1" ENV{DM_LV_NAME}=="logger" OWNER="vbox"
    $

    This seemed to do the trick. Don't know why, I guess I just had the wrong format...

    Reference URL: unix.stackexchange.com/questions/23955/permanently-changing-the-ownership-or-group-of-lvm-volume
    Last edited by wiz561; 01-03-2012 at 03:05 PM. Reason: added reference url

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •