Can't start http, nginx, dns after failed user delete
Posted: Wed Dec 21, 2016 2:17 pm
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:
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.
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
Can anyone please tell me if there's a way to fix my mistake and restore the server?
Thank you.