简体   繁体   中英

Daemon Umask in RHEL 8

I'm working on a hardening task of RHEL 8. The step now is set umask Daemon, I've tried to find /etc/sysconfig.init file to add umask 027 but it's not exist likes RHEL 7. Where can I config this umask on RHEL 8? 在此处输入图像描述

Setting a system wide umask should be done in /etc/profile and /etc/bashrc.

See Red Hat's documentation here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/assembly_managing-the-umask_configuring-basic-system-settings

Also, Systemd replaced Init in RHEL 7.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM