The chmod command changes the mode bits of files and directories. Normally, only the file owner or a process with the necessary privilege can make this change. Inspect the current mode with ls -l before and after running chmod.
Permissions · Lesson 2
Modifying Permissions
Learn how to change Linux permission bits with symbolic and octal `chmod` modes.