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.60) (envelope-from ) id 1GHUj1-0004p5-0h for garchives@archives.gentoo.org; Mon, 28 Aug 2006 00:11:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7S09OQO028151; Mon, 28 Aug 2006 00:09:24 GMT Received: from sysconcept.ca (103.205-206-12-0.interbaun.com [205.206.12.103] (may be forged)) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7S07M2f026085 for ; Mon, 28 Aug 2006 00:07:22 GMT Received: by sysconcept.ca (Postfix, from userid 1000) id 88E232EB779; Sun, 27 Aug 2006 18:08:00 -0600 (MDT) Subject: Re: [gentoo-user] Re: fstab devmode From: Joseph To: gentoo-user@lists.gentoo.org In-Reply-To: <200608280123.19278.harmgeerts@home.nl> References: <1156704912.6541.9.camel@sysconcept.ca> <44F2123E.6060600@googlemail.com> <1156715972.6541.24.camel@sysconcept.ca> <200608280123.19278.harmgeerts@home.nl> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 27 Aug 2006 18:07:59 -0600 Message-Id: <1156723679.14288.3.camel@sysconcept.ca> 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 X-Mailer: Evolution 2.6.2 X-Archives-Salt: 471c15cc-e5bd-4dd2-8e15-60cafb24bdd0 X-Archives-Hash: f95c920590d94889daaa89a1337887c1 On Mon, 2006-08-28 at 01:23 +0200, Harm Geerts wrote: > On Sunday 27 August 2006 23:59, Joseph wrote: > > Harm Geerts is right (thanks) "umask=0077" does what I need with dos > > partition, when mounted, usb stick has a permission 700. > > What would be an alternative for ext2 file system, umask doesn't work. > > I might be wrong but I'm guessing you want different permissions on the > mountpoint. > > In that case you can simply `chmod 700 /mnt/your_stick` it with ext2 (while > mounted). > ext2 stores this and will use the same permissions the next mount. > This is true for all filesystems that support permissions (which all normal > linux filesystems do) > > umask is only intended to make up for the lack of file permissions on vfat. Thanks for the explanation, I did that with "chown" on ext2 and it did work. It makes me wander if anybody experiment with other file systems (besides dos, ext2) on on memory sticks? -- #Joseph -- gentoo-user@gentoo.org mailing list