Skip to content
RED SAG Skills
mediumStudy question · answer published in Linux interview questions, so no pointslinuxpermissionssecurity

How passwd edits a root-owned file

A normal user runs passwd and it updates /etc/shadow, which only root can write. Why does this work?

$ ls -l /usr/bin/passwd
-rwsr-xr-x 1 root root 59976 /usr/bin/passwd
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions