Reply
Thread Tools
Posts: 61 | Thanked: 24 times | Joined on Jun 2010
#1
Hi guys.
New to N900 and loving it but have come unstuck with trying to execute binaries from the shell.

I have got

sudo gainroot

working properly but no matter what I do I always seem to get a 'permission denied' error when trying to execute any binaries by using ./

I can't figure out a way to launch binary files from the gui.

For the record I am trying to hack and slash KBDD and btkbd into running on my phone - any help would be fantastic!
TIA
Have searched this forum extensively before posting btw - cannot find anything related.

Last edited by bandario; 2010-07-01 at 00:06. Reason: edit
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#2
In order to execute commands using ./ you need to be in the same directory as the the file, and it needs to be executable (chmod +x filename).
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
Posts: 61 | Thanked: 24 times | Joined on Jun 2010
#3
I have already executed chmod +x on both files successfully and I am in the directory but it still spits out "Permission denied"


Any other reasons off the top of your head?
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#4
are they text files? need to start with:

#!/bin/bash

If bash.. or python if python.. etc.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#5
chmod +x is useless on VFAT (MyDocs is mounted noexec), make sure the files aren't in MyDocs.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#6
The internal SD mounted at MyDocs is mounted noexec by default -- moreover, since vfat doesn't have an execute bit, you have either everything executable, or nothing.

Simplest fix: get your stuff out of MyDocs.

Edit: Heh, ninjaed.
 

The Following User Says Thank You to Benson For This Useful Post:
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#7
hahah.. yeah.. what they said too.. i keep forgetting that as I reformatted my MyDocs rofl.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
vitaminj's Avatar
Posts: 405 | Thanked: 961 times | Joined on Dec 2009 @ London, UK
#8
If you're in MyDocs, that partition is mounted as noexec, so you won't be able to run or +x anything. Try moving the files higher up, into your home directory, or into /opt/.

Last edited by vitaminj; 2010-07-01 at 00:38. Reason: Damn, double-ninja'd
 
Posts: 61 | Thanked: 24 times | Joined on Jun 2010
#9
No dice :|

I got a bit excited then but it still eludes me.
Thanks so much for the help though guys. I will keep searching!
Attached Images
 
 
Posts: 61 | Thanked: 24 times | Joined on Jun 2010
#10
HOLY HELL!

Did another chmod +x in new location and it launched!

One step closer.

Thanks so much.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:09.