if 20 people have root password, and server supports root login, then you can't know which of the 20 people had their machines compromised.
if 20 people each have to sudo, then you can trace which user was compromised.
if 20 people have root password, and server supports root login, then you can't know which of the 20 people had their machines compromised.
if 20 people each have to sudo, then you can trace which user was compromised.
Reducing accountability isn't typically a goal for organizations so it's strictly better to have 20 accounts with sudo versus everyone using a single shared account (shared accountability) UNLESS the accountability is managed some other way (I think this something Gravitational Teleport tries to sell on this forum often).
I actually use a fork of OpenSSH called PKIXSSH which supports X.509 certificates in sshd, and this is far more reliable.
That’s not necessarily the case if you su as root and run the same commands.
If 20 people have the root password, there is a single password that will allow your machine to be pwned.
If 20 people have 20 passwords and sudo access, then any of 20 passwords will allow your machine to be pwned.
You can't know which of the 20 people you're trusting to pick a password is reusing it.