Password-less root user escalation via Sudoers

I hate typing in my root password; it's super long. Solution (as long as the account is secure via Keys or some other method) is to add the following line to your /etc/sudoers file:

<USER> ALL=NOPASSWD: ALL

Just remember to replace <USER> with the username you want to give privileges to use this command.

Now you can simply escalate using the "sudo su -" command, as shown here:

[08:06:30] [USER@vmtest1 ~]$ sudo su -
[08:06:31] [root@vmtest1 ~]#

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *