how to modify file roles of /var/lib/rsyslog/imjournal.state?
Posted by guangjian@reddit | linuxadmin | View on Reddit | 2 comments
default role is -rw-rw---- 1 root root 128 Oct 17 19:33 imjournal.state, which is 660, I can not modify it to 600, what is requirment from customer. I try use comand chmod 0600 imjournal.state, but not work.
Moocha@reddit
This sounds like an XY problem -- what is the actual problem the customer is trying to solve?
root:root 0660
should be functionally identical toroot:root 0600
unless there are some other accounts members of the grouproot
, which is... deeply weird.That being said, see the
FileCreateMode
parameter of the imjournal module documentation. The default value is0644
, which means that your distribution either specified it in the rsyslog configuration explicitly, or patched the source.guangjian@reddit (OP)
yes, your are correct. And can I mask imjournal module in rsyslog?