To resolve this issue, check the permissions of /var/log/dirsrv. The permissions should be the same as shown below. [root@server ~]# ls -laZd /var/log/dirsrv/ drwxr-xr-x. 3 root root system_u:object_r:dirsrv_var_log_t:s0 35 Jun 19 2021 /var/log/dirsrv/ Then check the permissions of /var/log/dirsrv/slapd-$domain, which should be similar as shown below. [root@server ~]# ls -laZd /var/log/dirsrv/slapd-domain/ drwxrwx---. 2 dirsrv dirsrv …
Category: Linux
“/sys/devices/virtual/dmi/id/product_uuid” file permission changes
When the server is restarted, or a patch is installed, the permissions on the file /sys/devices/virtual/dmi/id/product uuid are permanently changed from 444 to 400.The permission 444 on /sys/devices/virtual/dmi/id/product uuid can be hard-coded by the following steps. First, check the corresponding uuid. # cat /sys/devices/virtual/dmi/id/product_uuid <should_output_your_uuid> <--This is the required product_uuid Set an udev rule by …
How to set file permissions at /var/log/sa to be 640 permanently
Here is the permanent solution. We change umask value of the “sar” logs when it is created by sysstat to change the file permissions at /var/log/sa to be 640. But after updating packages, the umask value reverted to 0022. The executables sa1 and sa2 are called by sysstat-collect.service and sysstat-summary.service. So first, copy these unit …
How to apply specific file permission on file uploaded with Linux SFTP?
The specific file permissions on files uploaded with SFTP can be set using -u(umask) for directory permission and -m for required file permission. If the permission for an uploaded file needs to be 664 and the permission for a directory needs to be 775, then the following example can be considered. Match User ftp_user ChrootDirectory …
How to change default file permissions of /var/log/wtmp?
In CentOS 7.3, permissions of the /var/log/wtmp file is handled by /lib/tmpfiles.d/var.conf, which is executed after every reboot. To change default permissions, change permissions in the following script. # cat /lib/tmpfiles.d/var.conf | grep wtmp f /var/log/wtmp 0664 root utmp - In CentOS 7.0, 7.1, and 7.2, permissions for /var/log/wtmp is managed by file /lib/tmpfiles.d/systemd.conf, which …
SSSD fails to start with error – File ownership and permissions check failed
There may be a file permission issue if you get the following error messages after starting SSSD. # systemctl restart sssd Job for sssd.service failed because the control process exited with error code. See "systemctl status sssd.service" and "journalctl -xe" for details. The error message in /var/log/messages is shown below. sssd[sssd][22160]: SSSD couldn't load the …
How to disable GPU memory notification in CentOS
The notification is part of the housekeeping plugin. The procedures listed below can be used to disable the housekeeping plugin. # mkdir -p ~/.config/autostart# sed 's|[Desktop Entry]|&nHidden=true|' /etc/xdg/autostart/org.gnome.SettingsDaemon.Housekeeping.desktop > ~/.config/autostart/org.gnome.SettingsDaemon.Housekeeping.desktop You will receive the GPU memory notification messages when the server is utilizing high GPU resources. This is normal and the notifications can be disabled …