Hello,
I recently bought an USB drive, and wanting to share it between my Linux laptop and my BSD desktop, I formatted it as EXT2. However, on my desktop I have userid 1001, on my laptop I have userid 1000. My files that belonged to fred:fred now belong to john:tex ! (Don't ask me why TeX has GID 1001 on Linux. Or why it need a group of its own. That's another issue.)
I fixed it temporarily with a recursive chown, but how can I do on the long run ? I can tell mount to allow user fred to mount the disk with label X, but I didn't see how to tell it that on this disk, userid 1001 is actually fred. Any idea ? Web searches for ownership/permission issue with moveable media only turn up thing about FAT formatted drives, it seems.
I recently bought an USB drive, and wanting to share it between my Linux laptop and my BSD desktop, I formatted it as EXT2. However, on my desktop I have userid 1001, on my laptop I have userid 1000. My files that belonged to fred:fred now belong to john:tex ! (Don't ask me why TeX has GID 1001 on Linux. Or why it need a group of its own. That's another issue.)
I fixed it temporarily with a recursive chown, but how can I do on the long run ? I can tell mount to allow user fred to mount the disk with label X, but I didn't see how to tell it that on this disk, userid 1001 is actually fred. Any idea ? Web searches for ownership/permission issue with moveable media only turn up thing about FAT formatted drives, it seems.