Closed mikhailbot closed 5 years ago
update-motd
is run as root, that's why it has access to the logfiles. No need to give any different permissions to the logfiles.
Yea I noticed that when I setup it on my Ubuntu servers. Centos doesn’t yet have updated pam_motd
module so had to do it a different way that wasn’t running as root for some reason!
Now to figure out why the colour header doesn’t work...
On Mar 2, 2019, at 03:56, Yannick Boetzel notifications@github.com wrote:
update-motd is run as root, that's why it has access to the logfiles. No need to give any different permissions to the logfiles.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
How are you getting access to run the syslog and fail2ban greps without access to the log files? Are you giving log files read access to others? Just curious if there's another way for those items to work!