Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Preparing a shared USB stick
Date: Fri, 03 Jan 2014 09:16:43
Message-Id: 20140103091622.5f4a98f7@digimed.co.uk
In Reply to: Re: [gentoo-user] Preparing a shared USB stick by Francisco Ares
1 On Fri, 3 Jan 2014 00:31:27 -0200, Francisco Ares wrote:
2
3 > As far as I know, in a Gentoo system, any user in the group "disk" will
4 > be able to read/write to any USB stick plugged into the computer, with
5 > no ownership to any written file. In Linux (at least), as users are
6 > internally treated as numbers, those would not match from one system to
7 > another, so there is no meaning in a user owning a file in a removable
8 > device.
9
10 This is incorrect. File ownership is a domain of the filesystem, it is
11 held in the file's metadata. If you use a filesystem that supports
12 ownership, like ext*, you will end up with a non-portable stick. Belog to
13 the disk group only allows access to the dev node, not the files on the
14 disk.
15
16 Stick with FAT, where thereis no ownership so Linux pretend all files
17 are owned by whoever mounted the drive.
18
19
20 --
21 Neil Bothwick
22
23 Multitasking: Reading in the bathroom.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Preparing a shared USB stick Chris Stankevitz <chrisstankevitz@×××××.com>