chmod 4755 /usr/local/bin/app

Category: Administration

chmod 4755 /usr/local/bin/app

Set setuid with numeric permissions

The leading 4 in the four-digit mode sets the setuid bit while 755 grants the owner rwx and everyone else rx. Numeric chmod 4755 is the exact same as chmod u+s plus chmod 755 in one step. Remove the bit with chmod u-s or chmod 0755, and audit setuid files with find / -perm -4000.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.