Hello. I have been wondering about the issues of user permissions on removable media.
Let's say I have an external HD (ext3 formatted, let's assume) and I create some files/folders with read/write permissions just for myself. Later, I plug that drive in another computer, for example, a lab PC at the university. With no root access, would I be able to read/write those files/folders? The user (id, name...) is not the same.
And another question related to this. Let's say that I have the same drive. If I give it to a friend, can he simply create a user with the same name in his PC and be able to access those files/folders? What I mean is, what is exactly taken into account when checking for permissions in Linux? Just the username? The UID?
I know that in case I don't want anyone to peek into my folders I should take more advanced measures such as encryption, but these questions make me wonder if the whole users/permissions "thing" (forgive me linux wise men
makes sense when using removable media.
Thank you in advance.