Special permission bits: setuid, setgid, sticky
cheat sheet · Linux · GNU coreutils 9.4 https://lab.dimsanych.ru/en/wiki/special-bits/Cheat sheet
-
ls -ld /tmp /usr/bin/passwdt on /tmp, s on passwd -
sudo chmod g+s /srv/teamsetgid: new files get its group -
sudo chmod +t /srv/teamsticky: no deleting others' files -
sudo chmod 3770 /srv/teamboth bits plus rwx for the group -
stat -c '%a %A %n' /srv/team3770 drwxrws--T /srv/team -
sudo chmod g-s,-t /srv/teamclear both bits -
find / -perm -4000 -type f 2>/dev/nullevery setuid program