Linux Permissions and Links Cheat Sheet/Change permissions recursively

Apply mode changes to a directory tree.

Section: chmod Basics

Change permissions recursively

bash
bash
chmod -R u=rwX,go=rX project

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 chmod Basics
Add execute permission for user
Grant user execute permission.
OpenIn sheetbashsame section
Set file to 644
Common mode for normal text or config files.
OpenIn sheetbashsame section
Set file or directory to 755
Common executable/script or directory mode.
OpenIn sheetbashsame section
Set setgid on directory
New files inherit directory group.
OpenIn sheetbash2 tag match
Set sticky bit on directory
Allow only owners/root to delete their own files.
OpenIn sheetbash2 tag match
Set setuid bit
Set executable to run with owner's effective UID.
OpenIn sheetbash1 tag match