File permissions
cheat sheet · Linux https://lab.dimsanych.ru/en/wiki/permissions/Cheat sheet
-
ls -lpermissions and owner -
namei -l /path/to/filewhere along the path permissions are lost -
chmod 640 fileowner rw, group r -
chmod 600 secretowner only -
chmod 755 scriptexecutable for everyone -
chmod u+x,go-w filesymbolic -
chmod 2775 dirSGID — a shared group -
chmod 1777 dirsticky — only the owner can delete -
chown user:grp filesee chmod-chown -
find / -perm -4000 -type f 2>/dev/nullaudit SUID