mount privileges...what the heck?
Svein Halvor Halvorsen
svein.h at lvor.halvorsen.cc
Fri Jul 21 22:28:43 UTC 2006
DW wrote:
> Discovered something odd today, trying to get the procedures down to
> help someone who wanted to mount a second drive to a mount point in
> their home directory.
:
> Ownership on mount point: dude:dude /usr/home/dude/drive2
>
> Now when I do:
> # mount /dev/da1s1d /usr/home/dude/drive2
>
> Ownership shows:
> root:wheel /usr/home/dude/drive2
> This is not acceptable! should be "dude:dude /usr/home/dude/drive2"
This is probably because the root directory on the mounted file system
has a different ownership than the mount point. I might be way off here,
but could this be something like the mount point assuming the role of
the mounted file system root, when mounted?
Then after mounting, your chmod command was issued on the mounted fs,
not the mount point. This way it stuck. Could you maybe unmount the fs,
chgrp the mountpoint, and remount and see if the mountpoint still has
the dude group?
Svein Halvor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060721/543d83da/signature.pgp
More information about the freebsd-questions
mailing list