I’ve created a file as root but nothing got deleted
root@ip-172-26-15-87:/home/incbackus.cyberpanel.net/public_html# ls -la
total 228
drwxr-x--- 5 incba4896 nogroup 4096 Mar 18 08:47 .
drwx--x--x 8 incba4896 incba4896 4096 Mar 16 14:43 ..
-rw-r--r-- 1 root root 0 Mar 18 08:47 hello.txt
-rw-r--r-- 1 incba4896 incba4896 725 Mar 16 06:42 index.html
-rw-r--r-- 1 incba4896 incba4896 405 Mar 16 06:44 index.php
hello.txt is file owned and created by root
However, when the file is like this
root@ip-172-26-15-87:/home/incbackus.cyberpanel.net/public_html# ls -la
total 228
drwxr-x--- 5 incba4896 nogroup 4096 Mar 18 08:47 .
drwx--x--x 8 incba4896 incba4896 4096 Mar 16 14:43 ..
-rw------- 1 root root 0 Mar 18 08:47 hello.txt
-rw-r--r-- 1 incba4896 incba4896 725 Mar 16 06:42 index.html
public_html is now gone.
Its good finding, I will dig more and revert.