Mount changing mount point rights?
Ceri Davies
ceri at submonkey.net
Sat Feb 11 07:21:56 PST 2006
On 11 Feb 2006, at 08:44, Norberto Meijome wrote:
> thanks for the pointer. After mounting it, I did
> sudo chown betom: mnt_fld
>
> cd mnt_fld
> ls -la
> drwx------ 16 betom wheel 512 Feb 11 12:07 .
> drwxr-x--- 50 betom betom 3072 Feb 11 11:47 ..
> [...]
>
> which looks ok to me..
>
> but as soon as I unmount and mount again, it reverts to root:wheel
That's very, very strange, and shouldn't be possible. What are
you doing differently to me:
# uname -v
FreeBSD 6.1-PRERELEASE #19: Sun Feb 5 04:58:29 GMT 2006
root at shrike.private.submonkey.net:/usr/obj/usr/src/sys/SHRIKE
# dd if=/dev/zero of=/a/md bs=1000 count=6144000
# mdconfig -a -f /a/md
md2
# geli init /dev/md2
# geli attach /dev/md2
# newfs -U /dev/md2.eli
# mount /dev/md2.eli /mnt
# ls -ld /mnt
drwxr-xr-x 3 root wheel 512 Feb 11 15:15 /mnt
# chown ceri:users /mnt
# ls -ld /mnt
drwxr-xr-x 3 ceri users 512 Feb 11 15:15 /mnt
# umount /mnt
# mount /dev/md2.eli /mnt
# ls -ld /mnt
drwxr-xr-x 3 ceri users 512 Feb 11 15:15 /mnt
Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060211/b779601a/PGP.bin
More information about the freebsd-questions
mailing list