Permission Denied Every Single Command - Galaxy Grand Prime Q&A, Help & Troubleshooting

Hey all, so ive got an issue with Kali Linux(Running on android using Linux Deploy). I am on a galaxy go prime(ATT version of grand prime). After installing the ISO I booted up the os and vwella all was fine. All tools installed etc... but when I open up LxTerminal... this is where the problem starts...I am unable to run any command. Well i can, but all I ever get is permission denied. This includes all sudo commands...and all non sudo commands. I have done countless google searches and have turned uo similar issues but they all solved it by running some sort of sudo commands to be able to run commands as root. I tried the solutions i seen but same thing. Permission denied. I am stumped! I will upload any logs, pics etc u may need... thanks in advance for all the help!

Ubuntu is recommended instead of kali when executing commands for android devices, I love kali but when it comes to android I prefer ubuntu over kali, try switching over so you can stop running into problems

Related

[Q] Not even root is allowed to see my phone through ADB.

So, I recently upgraded to a HTC Thunderbolt and immediately rooted it. After I finished rooting it worked great. Now, to be clear, I did the rooting on my Ubuntu 10.04 machine at work.
Now continue on to when I get home, I decide I want to write some code for an app I'm working on... well, since I have a new phone I need to update udev to allow me to talk to it as a normal user. So my updated /etc/udev/rules.d/51-android.rules file contains:
Code:
SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″
Then I restart udev and adb, but when I type "$ adb devices", I'm still not allowed to see the device. I get the classic "???????????? no permissions".
Now I figure I would troubleshoot a bit, and tried to list devices as root and got *THE SAME RESPONSE*. How can this be?
Does anyone have any clues?
EDIT: I have fixed it. Turns out Debian is more strict about the "user" field in udev rules. Once I specified it, all was good. (Apparently I somehow used backticks before also, instead of quotes...)

[Q] Andriod 4.2.2 adb on linux

Hi,
Need latest adb and fastboot under linux which works for andriod 4.2.2. Whenever i tried to connect it says. I solved on windows by downloading the latest adb from xda site.
List of devices attached
0062bdd0d056b091 offline
Regards,
Lokesh
lokeshv said:
Hi,
Need latest adb and fastboot under linux which works for andriod 4.2.2. Whenever i tried to connect it says. I solved on windows by downloading the latest adb from xda site.
List of devices attached
0062bdd0d056b091 offline
Regards,
Lokesh
Click to expand...
Click to collapse
Same issue, any help would be great... the sdk says up to date.
I've attached the adb and fastboot binaries from the latest Android SDK for Linux. Also make sure you check the phone for the popup to confirm adding the PC's signature to the device's whitelist.
I assume you're using Ubuntu in which case android-tools is in the Ubuntu Repository for 12.10.
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
If you want a more update ADB and Fastboot use this ppa http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html
I have the one from Ubuntu repository installed on 13.04 and it works fine with my 4.2.2 devices.
Also, like tuxdude said, make sure you have your PC whitelisted so it is able to connect via adb. New security feature in 4.2.2
Try disabling and re-enabling usb debugging while plugged in. It's the only way i got the rsa verification on osx, which before i had the offline device output message.
I had a same problem, and I found the solution.
If the adb the newest, and RSA windows doesn't appear on phone, check the .android directory (in your Home directory) ownership and permission. Mine was wrong, root was the owner.

[Q] Nexus 4 root help - Error more than one device and emulator

I am having an issue with ADB and rooting my n4 as above When i do"ADB reboot bootloader" I get Emulator-5554 offline and error: more than one device and emulator.
And I cant cant do anything. I have tried adb kill-server didn't work, a lot of people say it is bluestacks and to just end the process (I dont seem to have that installed with the android sdk I got). I have tried connecting it to port 5555 like people have said. Im lost now, any help
jonnyaztec said:
I am having an issue with ADB and rooting my n4 as above When i do"ADB reboot bootloader" I get Emulator-5554 offline and error: more than one device and emulator.
And I cant cant do anything. I have tried adb kill-server didn't work, a lot of people say it is bluestacks and to just end the process (I dont seem to have that installed with the android sdk I got). I have tried connecting it to port 5555 like people have said. Im lost now, any help
Click to expand...
Click to collapse
Solved you need to use adb -d reboot bootloader delete please

Samsung Galaxy S4 Backtrack problem !!!

hello forum users,
I bought the Samsung Galaxy S4 2 month ago and I want to run Backtrack 5 ARM version on it, but everytime is want to start BT there are mount errors or other issues so that backtrack wont start, and my question is what do i wrong ?? i rooted my phone already and tried to start linux with the complete linux installer from the playstore. I installed busybox and vnc viewer and terminal emulator already. Even tried to start BT with the boobt sh command but it failed to on mount issues etc. my phone
Samsung galaxy s4 GT-I9505 with 16 GB and 32 GB Sdcard
jelly bean 4.2.2 and rooted device
Can anyone help me ?
Backtrack on S4
itworksfine said:
hello forum users,
I bought the Samsung Galaxy S4 2 month ago and I want to run Backtrack 5 ARM version on it, but everytime is want to start BT there are mount errors or other issues so that backtrack wont start, and my question is what do i wrong ?? i rooted my phone already and tried to start linux with the complete linux installer from the playstore. I installed busybox and vnc viewer and terminal emulator already. Even tried to start BT with the boobt sh command but it failed to on mount issues etc. my phone
Samsung galaxy s4 GT-I9505 with 16 GB and 32 GB Sdcard
jelly bean 4.2.2 and rooted device
Can anyone help me ?
Click to expand...
Click to collapse
I'm having issues as well, however I can at least get it to boot. Have you tried setting it up by following these instructions? http://forum.xda-developers.com/showthread.php?t=1079898
My problem is starting the gui with vnc. All I get is a grey box. Also, I'm not sure why but I'm missing tools like airmon, aireplay etc. which should be in /sbin. Also when ever I attempt to run any of the programs from terminal emulator I get a message:
ifconfig is available in /sbin
The command could not be located because /sbin is not included in the PATH environment variable. This is most likely caused by the lack of admin priviledges associated with your user account.
i am sorry i tried to delete the poste (wrong adress ) but i can't
if any one tells me how to delete it
Ps : or how to make the script work on galaxy s4 it would be great, thanks

Installing Linux on Android

Solutions to installing Linux on CM11 on my OnePlus One
So, I wanted to install Kali on my phone and encountered many issues. I have found solutions to my issue and thought I would share the solutions for those who also encounter my issues.
1. Unable to change root password.
This issue was solved by installing com.mrbimc.selinux from play store (Sorry, I hate the rules and wish I can skip them and post a URL) and changing to permissive mode.
You may need to run this in Linux after you configure it
Code:
apt-get install selinux-policy-default
2. After running upgrade, I saw that PostgreSQL could not start causing the upgrade to fail "could not create IPv4 socket: Permission denied" and found the solution to be using the following command
Code:
usermod -a -G android_inet postgres
Now I got everything working properly.
So you're installing pure Linux kernel to android? Sorry I don't follow you
norpan111 said:
So you're installing pure Linux kernel to android? Sorry I don't follow you
Click to expand...
Click to collapse
I think he is doing a CHroot install where the linux distro shares the same kernel as android but runs all of its processes within one process executed on the host kernel
I also struggled with installing Kali linux at first but Robherc's LinuxOnAndroid/Complete Linux Installer FAQ helped me.
http://www.robherc.com/hosted/linuxonandroid/FAQ.html
What it doesn't say there is Kali linux' init VNC pass is kalilinux
I don't see a significant performance impact from running kali linux on the One.

Categories

Resources