Results 1 to 4 of 4

Thread: Chmod +X does not work?

  1. #1
    Join Date
    Mar 2009
    Beans
    4

    Chmod +X does not work?

    Hello,
    Can someone explain it?
    ****************************************
    zahy@zahy-laptop:/media/data_/Experimenter/experimenter$ ls -l sendBin.sh
    -rw------- 1 zahy zahy 277 2011-01-02 09:52 sendBin.sh
    zahy@zahy-laptop:/media/data_/Experimenter/experimenter$ chmod +x sendBin.sh
    zahy@zahy-laptop:/media/data_/Experimenter/experimenter$ ls -l sendBin.sh
    -rw------- 1 zahy zahy 277 2011-01-02 09:52 sendBin.sh

    ************************************************** ****

  2. #2
    Join Date
    Oct 2007
    Location
    Yaffo
    Beans
    118
    Distro
    Ubuntu Development Release

    Smile Re: Chmod +X does not work?

    you have to use sudo for that.

    sudo chmod a+x

    Welcome

  3. #3
    Join Date
    Aug 2006
    Beans
    13,004
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Chmod +X does not work?

    Using sudo with chmod is only needed if you aren't the owner of the file. In this case, the file sendBin.sh is owned by zahy, so sudo is not required.
    What file system is on /media/data_/? If it is NTFS or FAT32, then chmoding wouldn't work because Linux permissions only work on Linux file systems. You can still run that script though, even without making it executable, by specifying what program to run it with.
    Example:

    Code:
    bash ./sendBin.sh

  4. #4
    Join Date
    Mar 2009
    Beans
    4

    Re: Chmod +X does not work?

    I was going nuts.

    Thanks mikewhatever, that was the issue.
    It's HPFS/NTFS partition!

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
  •