When I am doing a lot of sudo operations, I like to spawn a bash shell from sudo to make the operations go quicker. I am against assigning a root password because I do not like the root account enabled because it is an easy target for hackers.
There are a couple of security concerns I have with using sudo bash
as well, but to me it seems safer than just enabling the root user all together.
Which option is safer? Using sudo bash
to obtain a root
level shell as a nomal user, or just enabling the root account and using su root
to gain root access?
/root/.ssh/authorized_keys
. Then the only password involved would be that for the private key. And a brute force attack on the password could only be performed by somebody who managed to obtain a copy of the encrypted secret key.