From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E3fhW-0001Gq-S1 for garchives@archives.gentoo.org; Fri, 12 Aug 2005 20:00:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7CJxHtY019249; Fri, 12 Aug 2005 19:59:17 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7CJt5pu007239 for ; Fri, 12 Aug 2005 19:55:05 GMT Received: from 82-41-57-20.cable.ubr08.edin.blueyonder.co.uk ([82.41.57.20] helo=snowdrop.home) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1E3fcO-0005kN-Ek for gentoo-user@lists.gentoo.org; Fri, 12 Aug 2005 19:55:04 +0000 Received: from localhost.home ([127.0.0.1] helo=snowdrop.home) by snowdrop.home with esmtp (Exim 4.50) id 1E3fc0-0003rw-Sw for gentoo-user@lists.gentoo.org; Fri, 12 Aug 2005 20:54:40 +0100 Date: Fri, 12 Aug 2005 20:54:37 +0100 From: Ciaran McCreesh To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] how to access mounted dir with non-root? Message-ID: <20050812205437.3c6eedad@snowdrop.home> In-Reply-To: <42FCFC68.9050703@planet.nl> References: <20050812153345.GA7635@daniel> <200508121707.32357.uwix@iway.na> <20050812201821.17d64fa1@hactar.digimed.co.uk> <42FCFC68.9050703@planet.nl> X-Mailer: Sylpheed-Claws 1.9.12 (GTK+ 2.6.7; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Signature_Fri__12_Aug_2005_20_54_37_+0100_qTe.ji67qXpq8oou; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Archives-Salt: 68509a65-79ee-4e60-a7b0-a5a21393c238 X-Archives-Hash: f88ab519f943e7e8c5b94f612eecfdd9 --Signature_Fri__12_Aug_2005_20_54_37_+0100_qTe.ji67qXpq8oou Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 12 Aug 2005 21:45:44 +0200 Holly Bostick wrote: | If umask masks bits off of the 'default' permissions, then what is the | point of umask=3D000? It seems that it would leave the permissions as | the default, which appear to be 755 (is there a creation mask of 022 | somewhere in the 'default' settings? I can't find it, if so), unless | you've explicitly set them to soemthing else. umask 'masks' the bits. So umask=3D000 means "use whatever the application uses when creating things without knocking off any bits". Most system calls that create files or directories also take a parameter for mode, which is where the 755 comes from. For example, for mkdir(2): > int mkdir(const char *pathname, mode_t mode); > (...) > The parameter mode specifies the permissions to use. It is > modified by the process's umask in the usual way: the permissions of > the created directory are (mode & ~umask & 0777). Other mode bits > of the created directory depend on the operating system. For Linux, > see below. --=20 Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm --Signature_Fri__12_Aug_2005_20_54_37_+0100_qTe.ji67qXpq8oou Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC/P6A96zL6DUtXhERAsWpAKDAatr9ghOLy3+97TxF54LfZLkzHACeMn7/ IF6LmTN5+DvmIXEblIFy06g= =HRP9 -----END PGP SIGNATURE----- --Signature_Fri__12_Aug_2005_20_54_37_+0100_qTe.ji67qXpq8oou-- -- gentoo-user@gentoo.org mailing list