How file permissions are stored in inode?
- by Debadyuti Maiti
Suppose there's two pc - "A" and "B". Then if A downloads a files from B , then what would be the file permission of that downloaded file? Is it possible that the downloaded file in A will have an Inode entry with all it's permissions from B & store B's user account as the owner ? If that's the case then is it impossible to change that files permission on A if "others" [as in user-group-others] doesn't have the right to write on that file?
e.g. if this is the case ,
__x __x __x file.txt [On B]
then what would be the file permission on A of that same file downloaded from B [e.g. through vsftpd]?
__x __x __x file.txt [On A]
or
rw_x rw_x rw_x file.txt [On A] [i.e. defined by A's default umask value]