Custom scripts on rooted Asus Transformer

SnagaDuath

Member
Sep 4, 2011
1
0
i there,

I rooted my transformer tablet recently and i'm trying to run custom scripts from a terminal emulator. For some reason i keep getting "permission denied" errors, even if i'm root user :-/ My current build is 8.6.5.7-20110730 from Asus.

i've searched around, but can't seem to find anything regarding this issue. Below is the console output i get when trying to run a simple hello world script. Any ideas?

/ $ cd /sdcard
/sdcard $ cat hello
#!/bin/bash
echo Hello World
/sdcard $ ./hello
bash: ./hello: Permission denied
/sdcard $ su
/sdcard # ./hello
bash: ./hello: Permission denied
/sdcard # chmod +x hello
/sdcard # ./hello
bash: ./hello: Permission denied
/sdcard # chmod 777 hello
/sdcard # ./hello
bash: ./hello: Permission denied
/sdcard #

Sent from my Transformer TF101 using Android Tablet Forum
 

tuennes74

Member
Sep 12, 2011
1
0
I have the exact same problem. Could it be that we have to be root in order to call scripts from the shell ?
 

bm16ton

Member
Dec 5, 2011
1
0
you need to remount your sdcard with correct options (allow executing) or copy your scripts to /system/bin or /system/xbin etc. your trying to execute scripts in a non executable area.
 
Top