From owner-freebsd-questions@FreeBSD.ORG Fri Feb 10 09:32:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 917AF16A420 for ; Fri, 10 Feb 2006 09:32:32 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from hermes2.cf.ac.uk (hermes2.cf.ac.uk [131.251.0.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA05743D55 for ; Fri, 10 Feb 2006 09:32:31 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from fenrir.insrv.cf.ac.uk ([131.251.50.213]) by hermes2.cf.ac.uk with esmtp (Exim 4.34) id 1F7Udi-0004Sj-8B; Fri, 10 Feb 2006 09:32:30 +0000 In-Reply-To: <43EB3AF2.2060701@meijome.net> References: <43EB3AF2.2060701@meijome.net> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-2-195476646" Message-Id: <33FC9ED5-430B-4FF2-B6D9-2CEECB222842@submonkey.net> Content-Transfer-Encoding: 7bit From: Ceri Davies Date: Fri, 10 Feb 2006 09:32:30 +0000 To: Norberto Meijome X-Pgp-Agent: GPGMail 1.1.1 (Tiger) X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: Cardiff University Sophos AV Cc: FreeBSD Questions Subject: Re: Mount changing mount point rights? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 09:32:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-2-195476646 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 9 Feb 2006, at 12:52, Norberto Meijome wrote: > hi all, > I'm mounting a GELI encrypted, file backed vnode on ~/mount_folder. > I am > member of wheel. > > I start with > Home directory: > drwxr-x--- 51 betom betom 3072 Feb 9 23:38 betom > > file and folder which i want to mount in. > > drwxrwx--- 2 betom betom 512 Feb 9 17:42 mount_folder > -rw-rw---- 1 betom betom 6144000000 Feb 9 23:38 geli.dsk > > I then define the md device, attach it to geli (it was already init > and > newfs -U run on it), fsck > > sudo mdconfig -a -t vnode -f ./_1.dsk -u 13 > sudo geli attach /dev/md13 > fsck -p -t ufs /dev/md13.eli > > the devices look like this : > $ ls -l /dev/md* > crw-r----- 1 root wheel 0, 121 Feb 9 22:24 /dev/md13 > crw-r----- 1 root wheel 0, 122 Feb 9 23:23 /dev/md13.eli > crw-rw---- 1 root wheel 0, 87 Feb 9 22:24 /dev/mdctl > > Then mount it: > sudo mount /dev/md13.eli /home/betom/mount_folder > > PROBLEM : the mount folder has changed it's access from > 770 betom:betom > to > 750 root:wheel > > drwxr-xr-x 3 root wheel 512 Feb 9 18:51 mount_folder > -rw-rw---- 1 betom betom 6144000000 Feb 9 23:50 geli.dsk > > umask : > $ umask > 0022 > > [betom@ayiin] [Thu Feb 9 23:48:53 2006] > ~ > $ sudo umask > 0022 > > > WHY is it doing that?! Since I want to use this folder as my own > user , > not root, I have to do the extra step of changing owner of the folder > every time...quite annoying. > how can I fix this? The owner of the "root" folder on the filesystem on md13.eli is root. Just chown/chmod it once it's mounted and it'll stick. Ceri -- That must be wonderful! I don't understand it at all. -- Moliere --Apple-Mail-2-195476646 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) iD8DBQFD7F2ume8yCsQvJJ0RAvhbAKC2fdQlAsOX3BFcDk6pfc4QmZ0qwgCfe1AM s0a/TzJZM10Y/hALXJAxCeg= =QNv9 -----END PGP SIGNATURE----- --Apple-Mail-2-195476646--