How file permissions are stored in inode?

Posted by Debadyuti Maiti on Ask Ubuntu See other posts from Ask Ubuntu or by Debadyuti Maiti
Published on 2012-04-13T15:03:03Z Indexed on 2012/04/14 5:40 UTC
Read the original article Hit count: 243

Filed under:
|
|
|
|

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]?

  1. __x __x __x file.txt [On A]

or

  1. rw_x rw_x rw_x file.txt [On A] [i.e. defined by A's default umask value]

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about files