Am Montag, 19. Januar 2015 17:44 CET, Koenraad Lelong <k.lelong@ace-electronics.be> schrieb:
This is not the first time I experience this, but now I wanted to ask. I formatted (EXT4) a new disk in a USB-to-SATA enclosure. All is fine. But when it is mounted via the "tray", I can't access it, I don't have rights to write on the disk. What I'm doing now is adding a directory as root and chowning that directory to my user. Then I can use that directory as storage.
Is this the way to go or am I missing something ?
Yes, the approach is correct. FAT file systems don't understand the concept of "user", so you can say "mount this and give all files to user XYZ". EXT4, on the other hand, is a Unix file system and it stores permissions (owner, group, permissions). So if you create a file as user X, then the file is owned by that user, even if you mount the disk on a different computer. Caveat: The file system actually stores only the user ID, not the name. The ID is resolved via /etc/passwd, so the names which ls reports can change. Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://blog.pdark.de/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org