I am not sure how many files that this happens to, but it has happened to two that I have tried in the last few days, one .sh file and another program/executable. I am logged in as root - Linux Mint 21.2 When I try to allow executing as a program it unticks itself (as in this video) I also get ‘permission denied’ in terminal, as root and i have tried

chmod +x filename

and

sudo chmod -v +x filename.sh

sudo chown --verbose 1000 filename.sh

But still get denied… What am I doing wrong here or how can I fix this?

  • a14o@feddit.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    6 days ago

    The partition containing the files may be mounted readonly. Check less /etc/mtab for an ro option on that entry.

    • Babalugats@feddit.ukOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 days ago

      This is the result for sda3 /dev/sda3 /media/user/8ACB-8EB4 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0

    • Bobo The Great@startrek.website
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      Also, at least for ext4 filesystems, probably many others, there’s an option (noexec) that prevents any execution. Might be worth checking that