Changing file and directory permissions in Linux is simple

Permissions can be weird when moving folders and creating files either with SSH or FTP.   If you run into an issue where you need to change many directories (folders) and files at the same time, follow the examples below.


We will be using the chmod command, and I am assuming you are using linux and SSH or terminal.

For changing permissions on a single directory or file, we typically use the following format:

chmod 777 file.txt

where 777 is read, write, and execute for owner group and other (everyone)