On Thu, 23 Jul 2009 13:36:29 +0200, Ludwig Nussel said: > The following two patches (for 2.6.31-rc4) therefore implement the > uid mount option for ext2 and ext3 to make them actually useful on > removable media. My implementation just writes uid 0 to disk for > files that are owned by the specified user. I'm certain this will end up violating the Principle of Least Surprise. For instance - you have UID 500 on 2 systems. Mount on old system, create a file - it's owned by 500. Take it to a new system, mount it, watch it get smashed to 0 because it's owned by "you". Take it back to the old system, and hey, you can't edit your file because it's not owned by 500 anymore... Hint: This *same exact* problem has been an issue for NFS for at least 25 years. Might want to think about (a) why Yellow Pages (and later LDAP) was developed, and (b) why NFS "root squash" traditionally maps to "nobody" rather than a usable UID.
Attachment:
pgpNPphTX08Xk.pgp
Description: PGP signature