chmod 777chmod is used to change the permissions of the actual file. When you execute chmod 777, you are allowing RWX (read, write, execute) access to owners, groups,chmod 777 -R .* ..[!.]* Bash has this command. shopt -s dotglob to also include hidden files in commands (shopt -u dotglob to disable that behaviour) if you want to stick to