El 4/12/19 a las 18:39, Rainer Gerhards via rsyslog escribió:
There is a setting in rsyslog.conf:
https://www.rsyslog.com/doc/v8-stable/configuration/global/options/rsconf1_umask.html
I think it has no new style equivalent.
I don't know if the umask option documented at
https://www.rsyslog.com/doc/v8-stable/rainerscript/global.html?highlight=umask
is the same or not.
But what I don't understand is why I need to configure an umask value
when I'm forcing mode with dirCreateMode and fileCreateMode. If I'm
using these option, rsyslog could force the file and dir mode
independently of the value of the umask.
Anyway, I have configured the umask, both with:
$umask 0000
global(umask="0000")
but with this config files are correctly created, but now I can't write
to /var/log/messages which is my default output file and have mode:
root@pitufo30:/etc/rsyslog.d# ls -lh /var/log/messages
-rw-r----- 1 syslog adm 9,2K dic 5 13:05 /var/log/messages
output to this file is configured with the rule:
*.* -/var/log/messages;RSYSLOG_TraditionalFileFormat
which is the last rule I have. Previous rule:
ruleset(name="save_to_file"
) {
action(type="omfile"
name="save_to_file"
dirCreateMode="0755"
fileCreateMode="0640"
dynaFile="default_output_file"
template="defaultOutputFormat"
)
}
# Solo para probar
$RuleSet remote_udp
if $hostname == 'canis40' then {
set $!hostname = 'ldapacc.um.es' ;
set $!filename = 'ldap.log' ;
}
call save_to_file
$RuleSet RSYSLOG_DefaultRuleset
is working file and creating files with mode 0640.
--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 868888337
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.