0

As stupid as I am a have disabled the root account before I gave my new user account permissions.. any Idea how I can enable the root user again or give my new user the root permission. Every time I try to acces sudo I get a acces denied message, If I try to log in to the root account it says it has been disabled.

1

The exact procedure is different depending on what distribution of Linux you are using but you want to either single user boot the system or use grub to enter recovery mode. For Debian based systems you usually can edit the kernel parameters in the grub menu and include rw init=/bin/bash, and on CentOS versions before 7 you can add the word single (or just the letter s) to the end of that same line.

Helpful links for forgotten password reset procedures : Ubuntu , CentOS 7

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.