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 1E3fYC-0004VY-Qg for garchives@archives.gentoo.org; Fri, 12 Aug 2005 19:50:45 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7CJns9A031392; Fri, 12 Aug 2005 19:49:54 GMT Received: from smtp17.wxs.nl (smtp17.wxs.nl [195.121.6.13]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7CJkMUb022226 for ; Fri, 12 Aug 2005 19:46:22 GMT Received: from [10.0.0.150] (ip3e83ab52.speed.planet.nl [62.131.171.82]) by smtp17.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IL4008TUK9A09@smtp17.wxs.nl> for gentoo-user@lists.gentoo.org; Fri, 12 Aug 2005 21:46:22 +0200 (CEST) Date: Fri, 12 Aug 2005 21:45:44 +0200 From: Holly Bostick Subject: Re: [gentoo-user] how to access mounted dir with non-root? In-reply-to: <20050812201821.17d64fa1@hactar.digimed.co.uk> To: gentoo-user@lists.gentoo.org Message-id: <42FCFC68.9050703@planet.nl> 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: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Accept-Language: nl-NL, nl, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050803) X-Enigmail-Version: 0.92.0.0 References: <20050812153345.GA7635@daniel> <200508121707.32357.uwix@iway.na> <20050812201821.17d64fa1@hactar.digimed.co.uk> X-Archives-Salt: 19500b64-aeb6-472a-a45c-f7352008df84 X-Archives-Hash: e919fd25ef867b9d2aabbcfd8df38297 Neil Bothwick schreef: > On Fri, 12 Aug 2005 17:07:32 +0100, Uwe Thiem wrote: > > >>If not (like FAT) you need something like "mount -o >>uid=youruser,gid=users,umask=0777" > > > Don't you mean umask=0? umask inverts the bits, so 777 gives --------- to > all files. > > I'm currently in the middle of an 'argument' with someone else about this, so explain, please. If umask masks bits off of the 'default' permissions, then what is the point of umask=000? 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. The other person says that umask=000 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). In any case, I use(d) umask=017 (full permissions for owner, rw for group, and nothing for anyone else)-- but I had first set the permissions for the mount point to 750 and mounted vfat partitions using uid and gid, so that I would be the owner with the full permissions. Holly -- gentoo-user@gentoo.org mailing list