What are the correct permissions required for the /tmp and /var/tmp directories? Answer The /tmp and /var/tmp directories requires special permissions. This directory has Sticky Bit permissions. Many applications will show errors or fail if they are not able to write to /tmp with the appropriate permissions. # ls -ld /tmp drwxrwxrwt 21 root root 12288 Apr 28 16:18 /tmp The 't' at the end symbolizes that the sticky bit is set. A file created in the /tmp directory can only be removed by … [Read more...] about UNIX / Linux : What is the correct permission of /tmp and /var/tmp directories
Archives for April 2017
CentOS / RHEL 7 : How to Change Timezone
timedatectl is a new feature on RHEL7. It may be used to query and change the system clock and its settings. Follow the below steps to change the timezone to IST (India). (Execute the below commands as root user). 1. List all the available timezones using the below command. You will get a long list of timezones using this command. # timedatectl list-timezones Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers .... 2. Locate the correct timezone you need that is in the … [Read more...] about CentOS / RHEL 7 : How to Change Timezone
Why CentOS / RHEL 7 have many tmpfs (6 tmpfs filesystem), and what is their purpose
Question: Why CentOS 7 / RHEL 7 have many tmpfs (6 tmpfs filesystem), are these tmpfs mandatory for OS? What are the mount /run/user/1000, /run/user/0, /run/user/45, /sys/fs/cgroup for? Answer: If you run df -hP in RHEL 7 system you would find many tmpfs file systems mounted. # df -hP Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_os-lv_root 296G 33G 248G 12% / devtmpfs 126G 0 126G 0% /dev tmpfs … [Read more...] about Why CentOS / RHEL 7 have many tmpfs (6 tmpfs filesystem), and what is their purpose
How to trace asmcmd command on UNIX/Linux
Question : The asmcmd command execution is slow. How to trace the asmcmd command? Answer: You are seeing some errors or slow performance issue with command execution on asmcmd. And you wish to get more information on the command execution. The exception raised from asmcmd is not very descriptive and more of generic errors are reported for different issues. Below are some of the ways in which you can trace the asmcmd command to troubleshoot the performance issues with the execution of the … [Read more...] about How to trace asmcmd command on UNIX/Linux