Home / Archive for Albert / Page 5

Author: Albert

How to restrict access to a specific user when file or directory permission is 777?

To remove a user named ‘user’ access from a file/directory with full access to ‘other’. # setfacl -m u:user:- /path/to/file_or_directory The same can be done for a group named ‘groupname’; change u to g. # setfacl -m g:groupname:- /path/to/file_or_directory Check the permission with getfacl. # getfacl /path/to/file_or_directory # file: example/ # owner: root # group: …

Read more

File permissions of /var/cache/yum changed to 666

To resolve this issue follow below steps. Remove /var/cache/yum directory. # rm -fr /var/cache/yum List installed and enabled repositories. # yum repolist Then execute the following command to generate an updated updateinfo.xml file. # yum check-update Once the steps above are done, Check to see if the file has the wrong permissions. # find /var …

Read more

IPA server failed to start due to change in file permissions

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 …

Read more

“/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 …

Read more

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 …

Read more

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 …

Read more

Distributed Training Gpu

Distributed Training on Multiple GPUs

AI models trained at scale by data scientists or machine learning enthusiasts will inevitably reach a limit. As dataset sizes grow, processing times can increase from minutes to hours to days to weeks. Data scientists use distributed training for machine learning models and multiple GPU to speed up the development of complete AI models in …

Read more

Deep Learning Frameworks

Top 10 Deep Learning Frameworks

Deep learning is an area of AI and machine learning that uses unclassified data to classify images, computer vision, natural language processing (NLP), and other complex tasks. A neural network is called “deep” if it has at least three layers (one hidden layer). The network does deep learning on many hidden layers of computation. Whether …

Read more