I have access to multiple POSIX desktops where my personal user account has different UID/GID. I use an ext4 formatted portable SSD, which is great for my work, except for the permissioning issues arising from having different UID/GID on the different desktops. I understand the design trade-offs of UID/GID permissioning, and synchronizing UID/GID across those desktops is not an option. Is there a better solution than starting my work session on each desktop with:
sudo chown -R `id -un`:`id -gn` /media/$USER/disk
that
- does not require root priviliege;
- does not unnecessarily write metadata (and wear the SSD);
- does not require the creation/management of additional groups or other UID/GID manipulations on any of the concerned desktops;
- does not require setting specific permission to individual files; and
- does not add (unnecessary) complexity?