I usually log into my server via SSH as a non-root user and then authenticate myself as root using the su command whenever I need it. The thing is I haven’t changed a thing (not configurations, passwords, installations, etc.) and since last Saturday I get an “Authentication Failure” message whenever I try to su. I’ve seen some solutions to this problem but most of them require access to editing files and issuing commands that my current user has no privileges for.
What can I do to solve this issue?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
So many things could be wrong and only the logs can tell. You’ll likely need to boot into recovery mode and mount the disks read only to inspect the server and logs. Or if you have remote root login enabled, reset your password via DO and then get in with root and review the logs (/var/log/secure has more info on why logins fail).
Cheers
Did you verify the contents of the sudoers file? If you’re not listed there any longer, or somehow been modified, you won’t be able to su.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.