chmod 4755

rwsr-xr-x, used for programs that run as their owner.

Every form

Examples

Note

The setuid bit makes the program run as its owner, usually root. /usr/bin/passwd uses it to update the password file. Setuid on a shell script is ignored on Linux.

Other common modes