Without the -R (recursive) option, chmod applies mode changes only to the object(s) explicitly named on the command line. Therefore, chmod 755 /home/projects changes the permission bits on the /home/projects directory itself, but it leaves the permission bits of any existing files or sub-directories unchanged. To affect those items you would need to run chmod with the -R switch or issue separate chmod commands.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are directory permissions and how do they work?
Open an interactive chat with Bash
What does it mean by permission inheritance?
Open an interactive chat with Bash
How can I change permissions for multiple files at once?