cybersecurity · intermediate · ~15 min · safe pentest lab
Extract the owner permission triad.
Implement int owner_perms(int mode) returning the owner's rwx bits: (mode >> 6) & 7.
int owner_perms(int mode) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.