A couple of questions:
I noticed that when I insert a thumbdrive, my system sets the owner of the files on said drive to owner "user" (being whatever user I'm logged in as) and the group to "root". So if I had a program with the setgid bit enabled on this thumbdrive, created from some other computer, wouldn't this allow the user to run this program with the privileges of the root group? And, in doing so, wouldn't this compromise security? Don't all users in the "root" group have superuser privileges?
Or, would the system simply ignore any setuid/setgid for any files located on the drive? Speaking of which, I'm wondering where the system is storing file permission data for these files in the first place, especially for NTFS volumes (I have a dual boot setup with either Windows or Linux), obviously windows isn't setting aside place for them! I suppose what I'm trying to ask is, are these attributes stored in the file record themselves or in some type of central repository that determines what permissions each file has.


