Feature Request: Proxmox Log Ownership

SPaul

New Member
Nov 8, 2023
2
0
1
Looking for some help with Proxmox file permissions in /var/log

I see some logs are owned by user root and group adm

-rw-r----- 1 root adm 55 Nov 7 00:00 pve-firewall.log

So adding a user to the adm group allows for visibility.

Other logs have different permissions, some readable by all, some not:

-rw-r--r-- 1 root root 50920 Nov 7 01:55 pveam.log
-rw-r----- 1 www-data www-data 0 Nov 5 00:00 pveproxy/access.log
-rw-r--r-- 1 root root 41407 Nov 7 21:01 pve/tasks/index
-rw-r--r-- 1 root root 2419 Nov 7 21:01 pve/tasks/active

I'm looking for a way to set the group and file permissions when these logs are generated.

The default /etc/rsyslog.conf file shows these settings:

$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022

There's no mention of Proxmox in that file, nor any custom config in /etc/rsyslog.d/

I've trawled through a few forum posts, docs and other sources but am unable to find a definitive answer.

Any help in solving this will be most welcome.
 
All PVE files are not logged through (r|)syslog, so the defaults do not apply. Every app logs itself and I cannot think of any way to change that besides changing the source code of the various PVE components in question.
 
All PVE files are not logged through (r|)syslog, so the defaults do not apply. Every app logs itself and I cannot think of any way to change that besides changing the source code of the various PVE components in question.
Thanks for the input. Appreciate that. I will raise a feature request for this.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!