Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2006 15:21:22 +0000
From:      Ceri Davies <ceri@submonkey.net>
To:        Norberto Meijome <freebsd@meijome.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Mount changing mount point rights?
Message-ID:  <7917DD8D-BD27-429D-A29F-EF32CE86DF5B@submonkey.net>
In-Reply-To: <43EDA3E5.9050504@meijome.net>
References:  <43EB3AF2.2060701@meijome.net> <33FC9ED5-430B-4FF2-B6D9-2CEECB222842@submonkey.net> <43EDA3E5.9050504@meijome.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-1-302809583
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


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@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




--Apple-Mail-1-302809583
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFD7gDzme8yCsQvJJ0RAvHeAKCKFbC44S57E03bSZcNHzKzOeZCIgCgnM5B
uPqpO6pIigGDoc5et/31z2A=
=s0y2
-----END PGP SIGNATURE-----

--Apple-Mail-1-302809583--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7917DD8D-BD27-429D-A29F-EF32CE86DF5B>