26 Feb Changing permission on multiple files withing bash by kayals in Linux, Shell Srcipt, UnixComments File variable is an array and $files expands to the first element as you have noticed. To execute chmod on all elements of the array, use chmod +x "${files[@]}" Related posts:How to Enable Apache Mod_Rewrite on UbuntuHow To Enable DNS-Over-HTTPS On Chrome, Firefox, Edge, Brave?Apache Reverse Proxy Error 500 Error during SSL Handshake with remote server