I'm very new to server admin. I'm having an issue whereby any file or folder I create via the terminal on WHM (Centos 7.6) results in a file/folder with 0/0 user and group stat.
Example command:
mkdir mydir
This is confirmed in Filezilla, and consequently none of the files load in the browser - I get a 500 error.
This doesn't happen when I create files/dirs directly within FileZilla. What can I do to address this?
[EDIT]
In response to Thomas' comment, the output for ls -alh mydir
is:
total 0
drwxr-xr-x 2 root root 6 Aug 1 18:23 .
drwxr-xr-x 3 dev dev 18 Aug 1 18:23 ..
while the output for ls -alh <file created earlier, not via terminal>
is:
-rw-r--r-- 1 gcore gcore 9.6K Nov 28 2018 index.php