Results 1 to 4 of 4

Thread: can't make shell script executable (10.10RC)

  1. #1
    Join Date
    Sep 2008
    Location
    ~/
    Beans
    78

    can't make shell script executable (10.10RC)

    I'm trying to make a simple autorun script, for my Micro SD Card, the script works fine, but I simply cannot make it executable.

    When I check the "Allow executing file as program" check box, it just automatically unchecks itself immediately. Chmod'ing it does nothing (I assume is resets behind the scenes as well). Nothing is different as a super user either.

    The script runs fine when run locally (not on my SD card), and when run like
    Code:
    bash ./autorun
    but
    Code:
    ./autorun
    yells at me. (bash: ./autorun: Permission denied)

    It refuses to become executable.

    Am I doing something wrong here? This is driving me completely and utterly mad.

  2. #2
    Join Date
    Jun 2007
    Beans
    17,337

    Re: can't make shell script executable (10.10RC)

    Probably related to this (though there is another possibility.
    To resolve a bug in udisks this patch was added - applies to vfat filesystems on removable media

    Add 00git-vfat-showexec.patch: Enable the "showexec" vfat mount option, to
    avoid data files being executable (which causes confusing question dialogs
    in nautilus which only have one sensible answer). Patch taken from
    upstream git head. (LP: #14335)
    The patch can be reverted in a custom udisk build - if this is your issue

  3. #3
    Join Date
    Sep 2008
    Location
    ~/
    Beans
    78

    Re: can't make shell script executable (10.10RC)

    That sounds like it would do it.

    So I'd have to edit, and compile it from source then?

    I'm not much of a programmer. :/

  4. #4
    Join Date
    Feb 2010
    Beans
    64
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: can't make shell script executable (10.10RC)

    Exactly the same problem here.
    Could not understand the above solution.
    Please can anybody help me on this.
    College Teaches Language not programming

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •