[G1 Q&A, Help & Troubleshooting] omajgat:
C:\Tools>adb shell
$ su
su
# cd /sdcard
cd /sdcard
# ls -l
ls -l
d---rwxr-x system sdcard_rw 2011-10-22 13:04 LOST.DIR
----rwxr-x system sdcard_rw 6188 2011-10-22 14:31 UniversalAndroot.log
----rwxr-x system sdcard_rw 524288000 2011-10-22 16:56 Linux.loop
d---rwxr-x system sdcard_rw 2011-10-22 13:20 backup
d---rwxr-x system sdcard_rw 2011-10-24 18:25 DCIM
----rwxr-x system sdcard_rw 964401 2011-10-22 14:27 UniversalAndroot-1.6.2-beta5.apk
d---rwxr-x system sdcard_rw 2011-10-22 21:11 factory.widgets.skins
----rwxr-x system sdcard_rw 4712448 2011-10-22 15:04 recovery.img
----rwxr-x system sdcard_rw 9181622 2011-10-22 15:27 update.zip
----rwxr-x system sdcard_rw 26172 2009-10-03 17:07 flash_image
----rwxr-x system sdcard_rw 91564352 2009-01-01 12:58 DREAIMG.nbh
# chmod 700 flash_image
chmod 700 flash_image
# ls -l
ls -l
d---rwxr-x system sdcard_rw 2011-10-22 13:04 LOST.DIR
----rwxr-x system sdcard_rw 6188 2011-10-22 14:31 UniversalAndroot.log
----rwxr-x system sdcard_rw 524288000 2011-10-22 16:56 Linux.loop
d---rwxr-x system sdcard_rw 2011-10-22 13:20 backup
d---rwxr-x system sdcard_rw 2011-10-24 18:25 DCIM
----rwxr-x system sdcard_rw 964401 2011-10-22 14:27 UniversalAndroot-1.6.2-beta5.apk
d---rwxr-x system sdcard_rw 2011-10-22 21:11 factory.widgets.skins
----rwxr-x system sdcard_rw 4712448 2011-10-22 15:04 recovery.img
----rwxr-x system sdcard_rw 9181622 2011-10-22 15:27 update.zip
----rwxr-x system sdcard_rw 26172 2009-10-03 17:07 flash_image
----rwxr-x system sdcard_rw 91564352 2009-01-01 12:58 DREAIMG.nbh
# chmod 777 flash_image
chmod 777 flash_image
# ls -l
ls -l
d---rwxr-x system sdcard_rw 2011-10-22 13:04 LOST.DIR
----rwxr-x system sdcard_rw 6188 2011-10-22 14:31 UniversalAndroot.log
----rwxr-x system sdcard_rw 524288000 2011-10-22 16:56 Linux.loop
d---rwxr-x system sdcard_rw 2011-10-22 13:20 backup
d---rwxr-x system sdcard_rw 2011-10-24 18:25 DCIM
----rwxr-x system sdcard_rw 964401 2011-10-22 14:27 UniversalAndroot-1.6.2-beta5.apk
d---rwxr-x system sdcard_rw 2011-10-22 21:11 factory.widgets.skins
----rwxr-x system sdcard_rw 4712448 2011-10-22 15:04 recovery.img
----rwxr-x system sdcard_rw 9181622 2011-10-22 15:27 update.zip
----rwxr-x system sdcard_rw 26172 2009-10-03 17:07 flash_image
----rwxr-x system sdcard_rw 91564352 2009-01-01 12:58 DREAIMG.nbh
# chmod +x flash_image
chmod +x flash_image
Bad mode
# ls -l
ls -l
d---rwxr-x system sdcard_rw 2011-10-22 13:04 LOST.DIR
----rwxr-x system sdcard_rw 6188 2011-10-22 14:31 UniversalAndroot.log
----rwxr-x system sdcard_rw 524288000 2011-10-22 16:56 Linux.loop
d---rwxr-x system sdcard_rw 2011-10-22 13:20 backup
d---rwxr-x system sdcard_rw 2011-10-24 18:25 DCIM
----rwxr-x system sdcard_rw 964401 2011-10-22 14:27 UniversalAndroot-1.6.2-beta5.apk
d---rwxr-x system sdcard_rw 2011-10-22 21:11 factory.widgets.skins
----rwxr-x system sdcard_rw 4712448 2011-10-22 15:04 recovery.img
----rwxr-x system sdcard_rw 9181622 2011-10-22 15:27 update.zip
----rwxr-x system sdcard_rw 26172 2009-10-03 17:07 flash_image
----rwxr-x system sdcard_rw 91564352 2009-01-01 12:58 DREAIMG.nbh
#

C:\Tools>adb.exe shell
$ su
su
# cd /sdcard
cd /sdcard
# ls -l
ls -l
d---rwxr-x system sdcard_rw 2011-10-22 13:04 LOST.DIR
----rwxr-x system sdcard_rw 6188 2011-10-22 14:31 UniversalAndroot.log
----rwxr-x system sdcard_rw 524288000 2011-10-22 16:56 Linux.loop
d---rwxr-x system sdcard_rw 2011-10-22 13:20 backup
d---rwxr-x system sdcard_rw 2011-10-24 18:25 DCIM
----rwxr-x system sdcard_rw 964401 2011-10-22 14:27 UniversalAndroot-1.6.2-beta5.apk
d---rwxr-x system sdcard_rw 2011-10-22 21:11 factory.widgets.skins
----rwxr-x system sdcard_rw 4712448 2011-10-22 15:04 recovery.img
----rwxr-x system sdcard_rw 9181622 2011-10-22 15:27 update.zip
----rwxr-x system sdcard_rw 26172 2009-10-03 17:07 flash_image
----rwxr-x system sdcard_rw 91564352 2009-01-01 12:58 DREAIMG.nbh
# ./flash_image recovery.img
./flash_image recovery.img
./flash_image: permission denied
# ./flash_image recovery recovery.img
./flash_image recovery recovery.img
./flash_image: permission denied
# ./flash_image
./flash_image
./flash_image: permission denied
# flash_image
flash_image
flash_image: not found
# /sdcard/flash_image recoveery /sdcard/recovery.img
/sdcard/flash_image recoveery /sdcard/recovery.img
/sdcard/flash_image: permission denied
#

Any ideas?