Strange thing happened, second time

hello all,

i have a virtualmin server for a friend to host and admin some personal sites.
since i don’t want to give him the root pass, i created a user and gave him sudo access.

all starts with apache and dovecot failure

Mar 10 15:02:20 apachectl[60528]: AH00112: Warning: DocumentRoot [/home/vh6c/public_html] does not exist
Mar 10 15:02:20 apachectl[60528]: AH00526: Syntax error on line 29 of /etc/apache2/sites-enabled/
Mar 10 15:02:20 apachectl[60528]: Wrapper /home/vh6c/fcgi-bin/php7.4.fcgi cannot be accessed: (2)No such file or directory
Mar 10 15:02:20 apachectl[60525]: Action ‘start’ failed.

and when i see the /home directory, i see something like this!

it seems that the filesystem was corrupted ?
it happened second time today.

we are talking about a Proxmox VM with Debian

when i try to find directory /home/vh6c this is what i get:

I may be a bit late but the screenshot in your first post seem to show that somehow your root directory got copied or moved to your home directory. I’m not sure if it would qualify as filesystem corruption but rather a mistake which could have been as simple as omitting a . from the command #sudo cp -r ./ /home . If your friend has sudo he could have done this by mistake.

If your friend is not able to host his own full virtualmin server, I’m not sure giving him sudo permissions is a good idea. I never had the need for it, but I think virtualmin has a very simple way to check who did what, provided that virtualmin still works after this happened. Check recent logins for recorded actions

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.