Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  23] [ 0]  / answers: 1 / hits: 1869  / 1 Year ago, mon, may 29, 2023, 11:08:01

If I have a file with permissions and ownership like:
-rw------- 1 root root, is this file encrypted?



I am asking this because I am wondering how the file is really protected against being read as plain bytes and then reconstructed by some non-root user, or by an attacker.


More From » permissions

 Answers
0

is this file encrypted?




No. The file is still what the file is. If someone reboots into a live session the file is visible by ANY user that does the reboot. Same if someone takes out the harddisc and mounts it into another system where they are admin.



An encrypted file would be inaccessible however the method you would use.



All -rw------- 1 root root does is make a file readable and writable by a user "root" and not by the group "root" and not by "others". Pretty strict but not good enough if you never want someone to pry into it.



The ONLY working method to prevent access by anyone on a system is not storing the file on that system.


[#9138] Wednesday, May 31, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tatoethin

Total Points: 377
Total Questions: 110
Total Answers: 98

Location: Saudi Arabia
Member since Sat, Aug 20, 2022
2 Years ago
;