TrueNAS-SCALE-22.02-RC.2 - log permissiosn

trueBotzki

Cadet
Joined
Jan 9, 2022
Messages
1
I ran into into interesting issue after migration from Core to Scale, where several log files are owned by noboby:

-rw------- 1 nobody root 8786 Jan 9 12:58 auth.log
-rw------- 1 nobody root 97120 Jan 9 12:58 daemon.log
-rw------- 1 nobody root 34265 Jan 9 12:58 debug.log
-rw------- 1 nobody root 77872 Jan 9 12:58 messages

This prevents logrotate etc from working. Rest of the logfiles are owned by root.

I cannot change permissions even as root user:

root@server:/var/log# chmod 660 debug.log
chmod: changing permissions of 'debug.log': Value too large for defined data type
root@server:/var/log# chown root:root debug.log
chown: changing ownership of 'debug.log': Operation not permitted

Rsyslog umask is set to 0022.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Can you run the command strace chmod 660 debug.log --output=/tmp/chmod.log and PM me output along with a debug file.
Let's see what syscall it's failing on.
 
Top