Linux

Explain what is setgid and setuid

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  • setuid is a linux file permission that permits a user to run a file or program with the permissions of the owner of that file. This is possible by elevation of current user privileges.
  • setgid is a process when executed will run as the group that owns the file.