Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 8992  / 2 Years ago, fri, march 11, 2022, 3:40:17

There are many log files in /var/log that I do not have permission to read with my normal user. I have to use sudo to add read permission first. It's getting annoying, especially having to repeat the same thing on different machines.



Is there a good reason for this?


More From » permissions

 Answers
3

The /var/log files contain logged data, http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/var.html , important to note-

"/var/log/wtmp, which logs all logins and logouts into the system"

"/var/log/messages, where all kernel and system program message are usually stored"



These areas contain tons of detailed information about your system, and if even read by an outside service, could be used to compromise your whole system. I would advise not to change the permissions on this folder.


[#39220] Friday, March 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
epypian

Total Points: 130
Total Questions: 111
Total Answers: 113

Location: Romania
Member since Mon, Jun 6, 2022
2 Years ago
epypian questions
Sat, Jul 31, 21, 18:35, 3 Years ago
Sun, Oct 24, 21, 23:28, 3 Years ago
Sun, Dec 26, 21, 12:08, 2 Years ago
Tue, May 9, 23, 21:23, 1 Year ago
;