Locked out of my server (Ubuntu 12.04.4 x32)
Posted: Tue Jul 15, 2014 10:41 pm
Hi,
As a general security convention, it is common to create a user and add him to sudoers file with root priviledges and disable root login. That is what I did before setting up VestaCP.
The problem is; after I added my user to sudoers file with root privileges and disabled root login from sshd_config, vestacp overwrote the sudoers file without notification and removed my user from the sudoers file. Effectively disabling any sort of root access on my server (as far as I can understand).
Now I can log on to my server, but I cannot use sudo, and can't login as root. I have personal data I need to backup and I couldn't find a way to retrieve it.
I know VestaCP creates some users (I can do everything from the web interface) but I don't know how I can use it to regain root access (if it's possible at all).
Is there any way to solve this problem?
Thanks
Note: I followed a very common tutorial for the initial setup: https://www.digitalocean.com/community/ ... untu-12-04
I have these entries in my sshd_config:
As a general security convention, it is common to create a user and add him to sudoers file with root priviledges and disable root login. That is what I did before setting up VestaCP.
The problem is; after I added my user to sudoers file with root privileges and disabled root login from sshd_config, vestacp overwrote the sudoers file without notification and removed my user from the sudoers file. Effectively disabling any sort of root access on my server (as far as I can understand).
Now I can log on to my server, but I cannot use sudo, and can't login as root. I have personal data I need to backup and I couldn't find a way to retrieve it.
I know VestaCP creates some users (I can do everything from the web interface) but I don't know how I can use it to regain root access (if it's possible at all).
Is there any way to solve this problem?
Thanks
Note: I followed a very common tutorial for the initial setup: https://www.digitalocean.com/community/ ... untu-12-04
I have these entries in my sshd_config:
PermitRootLogin no
UseDNS no
AllowUsers <my-username>