Linux · Flashcard

Which command runs a single command with elevated privileges as another user?

  • Asudo, which executes one command as a permitted user
  • Bchmod, which executes one command as a permitted user
  • Cchown, which executes one command as a permitted user
  • Dumask, which executes one command as a permitted user

Why this is the answer

sudo runs a command as root or another user per policy. chmod only changes file permission bits and cannot raise privileges for a command.

Official docs
Study in Gnoseed →