Comment 32 for bug 10550

Revision history for this message
Pierre ReniƩ (archlinuxien) wrote :

Yes, permission problems are really annoying on Linux. To avoid this problem, the prehistoric FAT32 must be used, and I don't like that.

To fix this bug, there is an "easier" solution than patching the kernel : creating a virtual file system that enables UID/GID/permissions mapping between the real file system and the file system to be available to the user. That's not too hard with FUSE.

And after, integrate it with pmount to enable a default mapping for the user who mounts the disk.

Example :
I've these files on my removable disk :
drwxr-xr-x 1000 1000 2480 2007-08-25 18:09 work
drwxr-xr-x 1000 1000 232 2007-09-01 15:17 videos
drwxr-xr-x 1000 1000 11 2007-04-13 23:35 music
drwxr-xr-x 1000 1000 4500 2007-09-25 21:12 archives

My UID is 1001. I want to mount it to /media/usbdisk. pmount transparently mounts this file system to /tmp/mapfs/internal-sda1, and mounts a new file system that makes a mapping with the real files on /tmp/mapfs/internal-sda1.
To the user, it that gives this :
drwxr-xr-x 1001 1001 2480 2007-08-25 18:09 /media/usbdisk/work
drwxr-xr-x 1001 1001 232 2007-09-01 15:17 /media/usbdisk/videos
drwxr-xr-x 1001 1001 11 2007-04-13 23:35 /media/usbdisk/music
drwxr-xr-x 1001 1001 4500 2007-09-25 21:12 /media/usbdisk/archives