Set executable to run with owner's effective UID.

Section: Special Permission Bits

Set setuid bit

bash
bash
chmod u+s binary

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Special Permission Bits
Set setgid on directory
New files inherit directory group.
OpenIn sheetbashsame section
Set sticky bit on directory
Allow only owners/root to delete their own files.
OpenIn sheetbashsame section
Add execute permission for user
Grant user execute permission.
OpenIn sheetbash1 tag match
Set file to 644
Common mode for normal text or config files.
OpenIn sheetbash1 tag match
Set file or directory to 755
Common executable/script or directory mode.
OpenIn sheetbash1 tag match
Change permissions recursively
Apply mode changes to a directory tree.
OpenIn sheetbash1 tag match