Find the answer to your Linux question:
Results 1 to 3 of 3
Okay, so i made a script for android and put this: "$ chmod +x lu.bin" When i ran, it said "Bad Mode" I decided to rewrite and put: "$ chmod ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    2

    Whats Bad Mode?


    Okay, so i made a script for android and put this:

    "$ chmod +x lu.bin"

    When i ran, it said "Bad Mode"

    I decided to rewrite and put:
    "$ chmod +x lu.bin
    /mnt/sdcard/lu.bin"

    2 errors came up:
    Bad Mode
    and it cannot be found (even though its on my sdcard)

    I also tried with SU on, whats the problem?

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,207
    Quote Originally Posted by Mastermrz View Post
    Okay, so i made a script for android and put this:

    "$ chmod +x lu.bin"

    When i ran, it said "Bad Mode"

    I decided to rewrite and put:
    "$ chmod +x lu.bin
    /mnt/sdcard/lu.bin"

    2 errors came up:
    Bad Mode
    and it cannot be found (even though its on my sdcard)

    I also tried with SU on, whats the problem?
    You need to say who you're changing the mode for. For example o+x for non-owners of the file or a+x for everyone.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,525
    How are you accessing the command line for your android device? Also, if the shell you are using is a busybox based tool (likely), then it may not support the symbolic permissions strings like +x etc. and may require that you use the old octal values instead, such as "chmod 776 file.name".
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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