Hi all!
I've just installed terminal emulator but it seems that some commands cannot be used...
ls works very well such as many others...
But when I tried to display the arp cache, i got an error:
Code:
$arp -as
sh: arp: not found
So I ran into the folder where arp is:
Code:
$cd /proc/net/
and then I did this (with a new error):
Code:
$./arp
sh: ./arp cannot execute - Permission denied
Can someone tell me why?
And how to execute such a command on Android?
PS: I also did this with root but nothing has changed
Thanks in advance.
Goot # ?
Are you root?
Type su
Sent from my SGH-T679 using xda app-developers app
Related
Hey, dunno if this is the right place, but help is appreciated. (posted on mac forums, but figured it can't hurt to have more input)
I'm on a 10.6.3 MBP.
Every time I open up terminal, this shows up
Code:
Last login: Mon Jun 7 23:46:54 on ttys001
-bash: sdkfolder: No such file or directory
xxxx-xxxxxs-MacBook-Pro:~ xxxxxx$
why is that -bash line in there?
Also, I cannot run 'sudo' at all. I'm on an Admin account, and I have enabled root permissions.
Code:
xxxxx-xxxxxs-MacBook-Pro:~ xxxxx$ sudo su
-bash: sudo: command not found
Thanks in advance.
How come this works:
Code:
[[email protected]:~/android-dev/optimus_m]$ adb shell su -c id
uid=0(root) gid=0(root)
But this:
Code:
[[email protected]:~/android-dev/optimus_m]$ adb shell su -c pm disable com.seven.Z7
Permission denied
Fails?
In the first example superuser prompts for permission and then allows the command, in the second it doesn't prompt and just instantly fails. There are no related saved settings in superuser.
If there isn't a way to fix this, is there another way to execute commands on the phone as root from a script on the host computer?
Nothing?
Looks like I'm on my own. :\
Hi,
I'm trying to install busybox into a development board by downloading the pre-compiled binary and following the installation steps here. However, after doing so, I'm still unable to use the commands in /system/busybox. For example, when I try to run mknod, it shows me the following error:
Code:
./sh: mknod: not found
Basically, I did the following:
In Linux
Code:
adb root
adb remount
adb push busybox /system/busybox
adb shell
In device adb shell
Code:
cd /system/busybox
./busybox --install .
./sh
cd /system/bin
mv sh sh.android
ln -s /system/busybox/sh sh
It would seem like what I did to install busybox didn't work. May I know what's the correct procedure to install it?
I tried creating symlinks using the same ln command and it works, but do I have to do this manually for every single command?
Thanks!
goister said:
Hi,
I'm trying to install busybox into a development board by downloading the pre-compiled binary and following the installation steps here. However, after doing so, I'm still unable to use the commands in /system/busybox. For example, when I try to run mknod, it shows me the following error:
Code:
./sh: mknod: not found
Basically, I did the following:
In Linux
Code:
adb root
adb remount
adb push busybox /system/busybox
adb shell
In device adb shell
Code:
cd /system/busybox
./busybox --install .
./sh
cd /system/bin
mv sh sh.android
ln -s /system/busybox/sh sh
It would seem like what I did to install busybox didn't work. May I know what's the correct procedure to install it?
I tried creating symlinks using the same ln command and it works, but do I have to do this manually for every single command?
Thanks!
Click to expand...
Click to collapse
You didn't add /system/busybox to your PATH
Sent from my LT26i using XDA
Hi,
Where would I add it? init.rc or something?
Anyone?
Thanks!
I am using Android 6.0. I have an application that copies executable file (compiled for arm) to the app data folder. In the app I have set the executable permissions to:
Code:
chmod 777 /data/data/pckname/files/executable
when I try to run the file using adb shell I get this message
Code:
/system/bin/sh: /data/data/pckname/files/executable: can't
execute: Permission denied
I tried
Code:
ls -l
and this is the result
Code:
-rwxrwxrwx u0_a54 u0_a54 1620988 2016-12-14 13:59 execFile
Is the problem in the user and I must be a root to do it?
DohaE said:
I am using Android 6.0. I have an application that copies executable file (compiled for arm) to the app data folder. In the app I have set the executable permissions to:
Code:
chmod 777 /data/data/pckname/files/executable
when I try to run the file using adb shell I get this message
Code:
/system/bin/sh: /data/data/pckname/files/executable: can't
execute: Permission denied
I tried
Code:
ls -l
and this is the result
Code:
-rwxrwxrwx u0_a54 u0_a54 1620988 2016-12-14 13:59 execFile
Is the problem in the user and I must be a root to do it?
Click to expand...
Click to collapse
Greetings and welcome to assist. Yes I think you need to be root to change the permisisons
Regards
Sawdoctor
sawdoctor said:
Greetings and welcome to assist. Yes I think you need to be root to change the permisisons
Regards
Sawdoctor
Click to expand...
Click to collapse
But the permissions already changed and the file is in the data folder. It just wont execute. but I still think you are correct it wont execute until I run using user root
Hi guys
I have samsung j111f rooted with su binary
I've installed termux app and started using some pakages but there was some that needs root privileges when trying to run su and get to [email protected]# i was getting sush: command not found so i have installed sudo for termux from gitlab .
Everything works when using sudo [command] but when i drop to root shell sudo su [-] and try to run nmap for example :
$ sudo su [-]
# nmap
bash: /data/data/com.termux/files/usr/bin/nmap: Permission denied
#
Is there any way to solve the problem without using sudo each time ?