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 1E3gL3-0004Uz-SH for garchives@archives.gentoo.org; Fri, 12 Aug 2005 20:41:14 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7CKeHdG020205; Fri, 12 Aug 2005 20:40:17 GMT Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7CKaeU3023837 for ; Fri, 12 Aug 2005 20:36:40 GMT Received: from [82.69.83.178] (helo=desiato.digimed.co.uk) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1E3gGf-0000yZ-3h for gentoo-user@lists.gentoo.org; Fri, 12 Aug 2005 20:36:41 +0000 Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.2]) by desiato.digimed.co.uk (Postfix) with ESMTP id E268D1405F61 for ; Fri, 12 Aug 2005 21:36:37 +0100 (BST) Date: Fri, 12 Aug 2005 21:36:35 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] how to access mounted dir with non-root? Message-ID: <20050812213635.59c71d63@hactar.digimed.co.uk> 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> Organization: Digital Media Production X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.8; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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_21_36_35_+0100__uB+jS0p_LEZtFkG; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Originating-Heisenberg-IP: [82.69.83.178] X-Archives-Salt: fa76d26c-872e-4cc7-bb69-9f85cc26186c X-Archives-Hash: 11834a062a7206cda6a91925d8fd4c3a --Signature_Fri__12_Aug_2005_21_36_35_+0100__uB+jS0p_LEZtFkG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 12 Aug 2005 21:45:44 +0200, Holly Bostick wrote: > > Don't you mean umask=3D0? umask inverts the bits, so 777 gives > > --------- to all files. > >=20 > >=20 >=20 > I'm currently in the middle of an 'argument' with someone else about > this, so explain, please. >=20 > If umask masks bits off of the 'default' permissions, then what is the > point of umask=3D000? To give rwxrwxrwx, which is fine for a FAT filesystem, and certainly better than --------- > 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? And there's the rub. Setting permissions to 755 only gives write access to the owner, which is root when mounting at bootup. The other way of dealing with this with FAT filesystems is to use the uid/gid options to set yourself as the user, but that only works on a single user system. > The other person says that umask=3D000 removes all restrictions and gives > all permissions to everybody, but I just don't understand how this > could be, unless the specific file/mount point was already set that way > (no file creation mask, so the files are 'created' with the default > 777/666, or inherited the permission structure of the parent). The mount point is irrelevant, what counts is the permissions on the mounted filesystem, not the parent of the mount point. Once you mount something on it, it takes on the permissions of the mounted device. # ls -ld t drwxr-xr-x 2 root root 6 Apr 21 13:34 t # mount /dev/sdd1 t -o umask=3D0 # ls -ld t drwxrwxrwx 7 root root 16384 Jan 1 1970 t See, the 755 changes to the 777 specified in the mount options. /dev/sdd1 is a FAT16 formatted flash disk. =20 --=20 Neil Bothwick "We demand rigidly defined areas of doubt and uncertainty!" --Signature_Fri__12_Aug_2005_21_36_35_+0100__uB+jS0p_LEZtFkG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFC/QhWum4al0N1GQMRAoBHAKCK/HlgTfFs70WFblfXrUh7WKLJ3wCfQdON egbjTdEArksR0/G8GBOHWnw= =BNA+ -----END PGP SIGNATURE----- --Signature_Fri__12_Aug_2005_21_36_35_+0100__uB+jS0p_LEZtFkG-- -- gentoo-user@gentoo.org mailing list