Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Possible root compromise detected: Failed to create directory /dev/null – cPanel  (Read 4010 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
Possible root compromise detected: Failed to create directory /dev/null – cPanel

Code: [Select]
Attempts to create new directories or files whose file-names begin with numbers have failed.
This is indicative of a root compromise of the server.

The exact error encountered was:

Failed to create directory /dev/null: No such file or directory

Just check the disk space of your server especially the disk space usage of /tmp using df command. Try the following:

#df -h or df -h /tmp

In most cases, there will be enough disk space in /tmp. Please see a sample output given below:

root@server [~]# df -h

Code: [Select]
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       909G   78G  785G  10% /
tmpfs           3.9G     0  3.9G   0% /dev/shm
/dev/sda1       194M  129M   56M  70% /boot
/usr/tmpMnt     7.6G  1.1G  6.1G  15% /tmp

root@server [~]# df -h /tmp

Code: [Select]
Filesystem      Size  Used Avail Use% Mounted on
/usr/tmpMnt     7.6G  1.1G  6.1G  15% /tmp
Now, try df -i

root@server [~]# df -i

Code: [Select]
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 60481536 709298 59772238 2% /
tmpfs 173825 1 173824 1% /dev/shm
/dev/sda1 51200 59 51141 1% /boot
/usr/tmpMnt 500960 500425 535 100% /tmp

Yes, the problem for receiving this email is /tmp has reached its inode limit. Now, you need to clear some unnecessary files from /tmp to fix this problem.

Hope this helps!!!