LWN.net Logo

re: Remapping ext2/3 UIDs

re: Remapping ext2/3 UIDs

Posted Jul 30, 2009 6:02 UTC (Thu) by eru (subscriber, #2753)
Parent article: In Brief

Something like this really is needed, if one wants to replace the use of the famously patent-encumbered VFAT with a free alternative in removable media! For these, the UID should really be completely ignorable: When reading, the "uid=" option should remap everything to the given UID, not just files with zero UID. When writing, the UID on the media should probably be set to nobody (99), not root.


(Log in to post comments)

re: Remapping ext2/3 UIDs

Posted Jul 30, 2009 7:01 UTC (Thu) by tstover (subscriber, #56283) [Link]

damn straight

re: Remapping ext2/3 UIDs

Posted Jul 30, 2009 8:36 UTC (Thu) by mp (subscriber, #5615) [Link]

You certainly meant to write "nobody (65534), not root", didn't you?

If it's not root, configuration to allow for distro differences is necessary. Apparently the newest version of this patch allows it.

re: Remapping ext2/3 UIDs

Posted Jul 30, 2009 9:39 UTC (Thu) by eru (subscriber, #2753) [Link]

On the CentOS (RHEL clone) system I wrote this, "nobody" is 99, and 65534 is "nfsnobody". Actually that UID would be irrelevant, as long as it is unlikely to be a real user, or a system account (other than a "nobody"). Is there really no standard "nobody" number?

re: Remapping ext2/3 UIDs

Posted Jul 30, 2009 10:56 UTC (Thu) by NAR (subscriber, #1313) [Link]

It doesn't really matter, if there is a standard for system users, if nobody cares. On a SuSE system nobody is 65534 in group 65535, while on a Solaris nobody is 60001 in group 60001. On Ubuntu nobody is 65534 in group 65534. I have no other OSes nearby to check.

re: Remapping ext2/3 UIDs

Posted Jul 31, 2009 2:18 UTC (Fri) by njs (guest, #40338) [Link]

> When writing, the UID on the media should probably be set to nobody (99)

My understanding of 'nobody' is that it's what you use to run processes when they aren't supposed to have any permissions. Giving those processes read/write access to whole filesystems seems to defeat that purpose.

Better would be to make a new dedicated account for this purpose, and get LANANA to standardize the name and UID.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds