LWN.net Logo

User and group mount options for ext filesystems

User and group mount options for ext filesystems

Posted May 17, 2012 6:00 UTC (Thu) by geofft (subscriber, #59789)
In reply to: User and group mount options for ext filesystems by pr1268
Parent article: User and group mount options for ext filesystems

From the next line in the article:

"which would make the files appear to be owned by m.x and would create new files as n.y."

The usefulness of this makes is more obvious when you realize that m and x are user-visible uids/gids, and n and y are on-disk uids/gids -- different namespaces entirely. That is, if user geofft on my current system is uid 1001, and I'm mounting my laptop's root partition where user geofft is 1000, then I should mount with uid=1001:1000 so that everything appears owned by me now, but also so that anything new remains owned by me when I put the disk back into my laptop. 1001 is from the host's /etc/passwd, 1000 from the target's.


(Log in to post comments)

User and group mount options for ext filesystems

Posted May 17, 2012 9:20 UTC (Thu) by pr1268 (subscriber, #24648) [Link]

Thanks for the reply.

Of course, knowing myself, if I were to use such an implementation, I'd certainly get the m and the x backwards and really mess things up! :-)

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