I am getting the following permission denied error while trying to run .sh file on lubuntu:

./file.sh: 11: ./file.sh: ./qemu-system-i386: Permission denied

note: chmod +x file.sh , command is already given.

Any help is appreciated.

  • I think it's because you're on a 64-bit system and the 32-bit libraries aren't on your system. Are you on a 64-bit machine? – John Scott Oct 3 '15 at 1:31
  • it's an 32 bit system. – john Oct 4 '15 at 1:58

use sudo to execute file.sh

 sudo ./file.sh

any user can execute command qemu-system-i386 but seems like device that you want to use is either owned by root or read-only. if you want to use device in read-only mode then you have to add readonly=on attribute. i don't know what you have written in file.sh. so i am giving some reference that may help you.

  • here is long discussion about similar problem

  • here is some information that may be helpful

  • qemu-system-i386: use documentation more info about qemu-system-i386

  • But the execute permission is on for "world", so anyone should be able to execute yours. – ubfan1 Oct 3 '15 at 2:25
  • i have changed answer . – pl_rock Oct 3 '15 at 2:55
  • I am having the exacly the same error when using sudo ./file.sh the file I am trying to execute is a linux virtual machine program could be found at [levinux.com] I am new to qemu, therefore thank you for the document. – john Oct 4 '15 at 2:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.