APK Oasis

Recovery console. Cannot do admin tasks | DigitalOcean

From DigitalOcean

Recovery console. Cannot do admin tasks | DigitalOcean

I have messed up in the recovery console (beginner's error). I want to paste an SSH key into authorized_keys. I have modified the name of the admin to newadmin. That user cannot delete .ssh/authorized_keys and cannot go sudo because they are not in a file of users with sudo rights. Basically, I appear to have no admin user rights now!

How can I restore these rights without deleting my droplet. I have it up and running so I don't want to do that. Thanks!

Previous articleNext article

POPULAR CATEGORY

Software

35304

Artificial_Intelligence

12291

Internet

26604