Note that execution bit alone is not enough for shell scripts: one must be. But if we want to execute them, then we should give execute permission by shown above. When we make new script file then by default it has read and write permission. You need to give execute and read permission. Not a Canonical employee just a volunteer _ Remove old kernels (Ensure you do the dry run first in step 6 ) Adv Reply. Re: permission denied accessing a folder You would never normally need sudo to access any folder in a users home. The way you copied the file from one system to another (or mounted an external volume) may have turned off execute permission (as a safety feature) Unix and Unix-like systems generally will not execute a program unless it is marked with permission to execute.
Then chmod u+x program_name on the local copy and execute that.