Ubuntu – Screen: Cannot exec ‘/path/to/file’: Permission denied

command linepermissionsscreen

Simply said, I can't execute any file or directory with screen.
The error 'Cannot exec '/path/to/file': permission denied.' occurs every time.

I'm logged in with root, and should have all permissions needed, but it still fails to execute any file.

I'm trying to screen a .js file. (The .js file works fine without screen, and isn't supposed to shut-down/return anything at all.)

Best Answer

As Android Dev said in comments, you must set execution properties for your file, by chmod +x path-to-file or by chmod 777 path-to-file.

Related Question