Linux · Flashcard

Which command runs one command as another user, authenticating with the caller's own password?

  • Asudo, which checks the caller against a policy file first
  • Bsu, which asks instead for the target account's password
  • Csg, which runs the command under a different group identity
  • Dnewgrp, which changes the group of the current shell itself

Why this is the answer

sudo authenticates the caller with their own password and then consults /etc/sudoers to decide what they may run — which is what makes it auditable and revocable per user. su needs the target account's password, so it cannot be delegated, and sg and newgrp switch group identity rather than user.

Official docs
Study in Gnoseed →