Introduction
Sometimes files or folders are locked so you cannot open or change them. The chmod command changes who can read, write, or run a file. This helps you control access to your files safely.
When you want to let a friend open a file but not change it
When you need to make a script file runnable on your computer
When you want to stop others from deleting or editing your important files
When you share a folder and want only certain people to add files
When you fix permission errors that stop programs from working