All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvm ownership of special access node
Date: Sat, 2 May 2009 21:44:45 +0200	[thread overview]
Message-ID: <20090502194445.GI6466@racke> (raw)
In-Reply-To: <49FC7C24.6030702@fastmail.fm>

On Sat, May 02, 2009 at 02:00:20PM -0300, sebastian muniz wrote:
> Hello list.
> First post. Sorry  if this has already been discussed. I have search a  
> while with no luck.
> I need to mount a home directory for a user from a lvolume.
> For instance, I created
>  ACTIVE            '/dev/vg1/sebahome' [5.00 GB] inherit
>
> and need it mounted on /home/seba
> However, when I mount it on /home/seba permissions get root:root
>
> orion:~# ls -ld /home/seba
> drwxr-xr-x 4 root root 4096 2009-05-02 02:34 /home/seba
>
> I think that
>
> seba@orion:~$ ls -la /dev/vg1/sebahome
> lrwxrwxrwx 1 root root 24 2009-05-02 04:25 /dev/vg1/sebahome ->  
> /dev/mapper/vg1-sebahome
> seba@orion:~$ ls -la /dev/mapper/vg1-sebahome
> brw-rw---- 1 root disk 254, 3 2009-05-02 04:25 /dev/mapper/vg1-sebahome
>
> is the reason.
> Is there any way to create the special access node with other owner:group
> like the
> vxassist --user --group in veritas?
> Or is there any mount option I am now aware of?

mount /dev/vg1/sebahome /home/seba
chown owner:group /home/seba

should do the trick ;-)

once a file system gets mounted,
the ownership of its "/" overrides the ownership of the mount point.

	Lars

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD� and LINBIT� are registered trademarks of LINBIT, Austria.

  reply	other threads:[~2009-05-02 19:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-02 17:00 [linux-lvm] lvm ownership of special access node sebastian muniz
2009-05-02 19:44 ` Lars Ellenberg [this message]
2009-05-03  8:50   ` Georges Giralt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090502194445.GI6466@racke \
    --to=lars.ellenberg@linbit.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.