Page 1 of 1

Can't start http, nginx, dns after failed user delete

Posted: Wed Dec 21, 2016 2:17 pm
by vesta_mtl
I made the mistake of deleting a user from the command line using userdel -r username

I should have used v-delete-user

I then tried to correctly delete the user using v-delete-user and I got errors like this:

Code: Select all

chown: invalid user: ‘username:username’
chown: invalid group: ‘root:username’
/usr/local/vesta/func/domain.sh: line 176: /home/username/conf/web/httpd.conf: No such file or directory
chown: invalid group: ‘root:username’
chmod: cannot access ‘/home/username/conf/web/httpd.conf’: No such file or directory
/usr/local/vesta/func/domain.sh: line 176: /home/username/conf/web/nginx.conf: No such file or directory
chown: invalid group: ‘root:username’
chmod: cannot access ‘/home/username/conf/web/nginx.conf’: No such file or directory
Error: httpd restart failed
Since then, I cannot start httpd, nginx or dns.

Can anyone please tell me if there's a way to fix my mistake and restore the server?

Thank you.

Re: Can't start http, nginx, dns after failed user delete

Posted: Wed Feb 14, 2018 10:15 pm
by zakihardi
try to check /etc/httpd/conf.d/vesta.conf and /etc/nginx/conf.d/vesta.conf and get rid of "include" line that refer to old user