1 |
2014/1/2 Mateusz Kowalczyk <fuuzetsu@×××××××××××.uk> |
2 |
|
3 |
> On 02/01/14 23:02, Chris Stankevitz wrote: |
4 |
> > Hello, |
5 |
> > |
6 |
> > Please consider a USB "stick" that is unformatted but is to be used by |
7 |
> > multiple people/machines. Ideally your instructions will work for all |
8 |
> > people/os/WM, but if necessary please assume that everyone is running |
9 |
> > gnome under linux |
10 |
> |
11 |
> Well, if it ideally should work across multiple operating systems, |
12 |
> you're probably stuck with FAT32 or similar due to Windows. |
13 |
> |
14 |
> > 1. How should I prepare this device so that it can be plugged into any |
15 |
> > machine and will be writable by anyone? I suspect the answer will |
16 |
> > involve words like fdisk, mkfs.xxx, mkdir/mount, chmod/chown. I'm |
17 |
> > most interested in the chmod/chown part. |
18 |
> |
19 |
> If you go with FAT, there's no notion of ownership (I believe) so it's |
20 |
> not a problem. If you don't, I still don't think chmod/chown matters |
21 |
> as long as the user has the permissions to write to the stick when |
22 |
> mounted on their own machine. I might be wrong though! |
23 |
> |
24 |
> > 2. How can I prepare the device so that files/directories added by |
25 |
> > people in the future will continue to be writable by anyone? |
26 |
> |
27 |
> Likewise, I think they'll be able to as long as they have the |
28 |
> permission to write to the mounted stick _on their own machine_. |
29 |
> |
30 |
> > 3. How can I ensure that all files will appear to have the same owner; |
31 |
> > or, if this is not important, can you explain why it should not be a |
32 |
> > problem. |
33 |
> |
34 |
> I think it's not a problem, at least not with FAT. |
35 |
> |
36 |
> > And of course if you can refer me to a document that explains this I'm |
37 |
> > happy to read it. |
38 |
> > |
39 |
> > Thank you, |
40 |
> > |
41 |
> > Chris |
42 |
> > |
43 |
> |
44 |
> I'm not an expert but hopefully this helps to at least steer you in |
45 |
> the right direction. I used multiple USB sticks across multiple |
46 |
> machines across multiple systems in the past and I never had any |
47 |
> ownership concerns that you do. The only issues were if one of the |
48 |
> systems couldn't read the file format used. |
49 |
> |
50 |
> -- |
51 |
> Mateusz K. |
52 |
> |
53 |
> |
54 |
|
55 |
As far as I know, in a Gentoo system, any user in the group "disk" will be |
56 |
able to read/write to any USB stick plugged into the computer, with no |
57 |
ownership to any written file. In Linux (at least), as users are internally |
58 |
treated as numbers, those would not match from one system to another, so |
59 |
there is no meaning in a user owning a file in a removable device. |
60 |
|
61 |
I would suggest to format tat USB stick using NTFS, as it will be possible |
62 |
to use its compression (to write a compressed file is, AFAIK, exclusive to |
63 |
Windows, but any NTFS file, compressed or not, is readable under Linux - |
64 |
including Android, I already tested it, and also my Blu-Ray player with USB |
65 |
connection is able to read my NTFS formated USB stick). |
66 |
|
67 |
Hope this helps |
68 |
Francisco |