Official Spectra Discussion

Type your comment> @benjamin2000 said:

Can anyone explain why running “./linpeas.sh” gives me a permission error, but running “bash linpeas.sh” works fine? All permissions are set correctly, I’ve never seen this before.

It’s kind of funny. The filesystem is set as non-exec. So, the script itself is not executable. However, bash is executable and in a filesystem without the non-exec flag. So, even though if you call the script directly it’d usually use bash as interpreter, you cannot do it. You need to call bash and have it opening the script.