Answer the question
In order to leave comments, you need to log in
Will the user be able to read the files in the archive?
Hello. I have 2 users on the server - normal (let it be user) and sudoer. Using the sudo command, I pack files belonging to the user user into a tar archive and put the archive in a directory that belongs to the sudoer user. The archive is also owned by the sudoer user. The permissions on the files in the archive are 700. Can I read the files in the archive without sudo using the sudoer user?
Answer the question
In order to leave comments, you need to log in
The rights to the files in the archive are just labels, attributes for the archiving program. When unpacking, the archiver, if the --preserve-permissions option was set, will assign saved attributes to unpacked files. The owner of the unpacked files will be in any way the user who started the unpacking, since the archiver cannot change the owner for unpacked files (at least without additional gestures) if it is not unpacking root.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question