# ./scripts/replace-md5sums.py
bash: ./scripts/replace-md5sums.py: Permission denied
replace-md5sums.py
has chmod 600
Mount your Windows partition with "exec" option - on some distros it's "noexec" by default.
Try this
python ./scripts/replace-md5sums.py
Check for id. It may have root permissions.
So type su and then execute the script as ./scripts/replace-md5sums.py.
It works.
Did you include
#!/usr/bin/python
as your first line?
I'm a Ubuntu user and I had the same issue, when I was trying to run python script through a bash script while files were located in a NTFS partition (even with su didn't work) then I've moved it home (ext4) then it worked.
Do “chmod +x script”
Now try executing